class String


->CLASS->STRING ——————————–


headynation.com/opposite-of-chomp-in-ruby/

Public Instance Methods

remove_from_beginning(string_to_remove) click to toggle source
# File lib/mpm.rb, line 31
def remove_from_beginning(string_to_remove)
  len = string_to_remove.size
  if self[0..(len-1)] == string_to_remove
    return self[len..-1]
  end
  self
end