class String

Adds the lx method to the String class. To call LX utilities on the string, call its lx method. For example, call collapse like this:

str = ' Whatever  Dude  '
str.lx.collapse # => "Whatever Dude"

Public Instance Methods

lx() click to toggle source

Creates and returns an LX::String object.

# File lib/lx.rb, line 299
def lx
        return LX::String.new(self)
end