Module: Gemmy::Patches::StringPatch::InstanceMethods::Lchomp

Defined in:
lib/gemmy/patches/string_patch.rb

Instance Method Summary collapse

Instance Method Details

#lchomp(match) ⇒ Object

facets



161
162
163
164
165
166
167
# File 'lib/gemmy/patches/string_patch.rb', line 161

def lchomp(match)
  if index(match) == 0
    self[match.size..-1]
  else
    self.dup
  end
end