class String

Ruby 2.5 ships String#delete_prefix but lets try to support 2.4

Public Instance Methods

del_prefix(prf) click to toggle source
# File lib/fa_utils.rb, line 6
def del_prefix(prf)
  if self[0] == prf
    self[1..-1]
  end
end