Class
String
Home
In: locana/l_others.rb
Parent: Object

Here are some extensions to the String class used by Locana. This includes and extends the AddLocanaSupport module so Symbols can be used as the :text or :value attribute of Locana objects based on the Lobject class.

Methods

decc!, locana_is_word_wrapped?, locana_word_wrap, locana_word_wrap_pixels, locana_word_wrapped=,
Included modules

AddLocanaSupport
Public Instance methods
decc!() src

This is the reverse of succ!.

locana_word_wrap(distance, allow_growth=nil, min_distance=nil) src

Returns a new string based self with line feeds inserted at distance intervals without splitting any words.

locana_word_wrap_pixels(pixel_width, font_id) src

Returns a new string based self with line feeds inserted at distance intervals without splitting any words such that the pixel width of each line is less than pixel_width.

locana_is_word_wrapped?() src

Returns true if this string has been word wrapped. Used by the Leditbox box to efficiently rewrap lines as needed.

locana_word_wrapped=(new_value) src

An indicator is added to the String to indicate it has been wrapped. This Sets the word wrapped flag to new_value for this string. Used by the Leditbox box to efficiently rewrap lines as needed.


Seva Software


Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.

http://www.arunadb.org http://www.locana.org http://www.ruby-lang.org http://www.coolwell.org http://www.sevasoftware.com