Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/lx.rb

Overview

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"

Instance Method Summary collapse

Instance Method Details

#lxObject

Creates and returns an LX::String object.



299
300
301
# File 'lib/lx.rb', line 299

def lx
	return LX::String.new(self)
end