Class: String
- Inherits:
-
Object
- Object
- String
- 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
-
#lx ⇒ Object
Creates and returns an LX::String object.
Instance Method Details
#lx ⇒ Object
Creates and returns an LX::String object.
299 300 301 |
# File 'lib/lx.rb', line 299 def lx return LX::String.new(self) end |