Module: Gemmy::Patches::StringPatch::InstanceMethods::Lchomp
- Defined in:
- lib/gemmy/patches/string_patch.rb
Instance Method Summary collapse
-
#lchomp(match) ⇒ Object
facets.
Instance Method Details
#lchomp(match) ⇒ Object
facets
167 168 169 170 171 172 173 |
# File 'lib/gemmy/patches/string_patch.rb', line 167 def lchomp(match) if index(match) == 0 self[match.size..-1] else self.dup end end |