Sha256: 09bc51cb4fba1b880798646f9567ed60550b74cff091e17a85bbbd3ea3575f79

Contents?: true

Size: 127 Bytes

Versions: 9

Compression:

Stored size: 127 Bytes

Contents

class String
  def filter_prefix prefix
    self.starts_with?(prefix) ? self[prefix.to_s.length, self.length] : self
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
programmable-ventouse-0.0.10 lib/ventouse/filter_prefix.rb
programmable-ventouse-0.0.2 lib/ventouse/filter_prefix.rb
programmable-ventouse-0.0.3 lib/ventouse/filter_prefix.rb
programmable-ventouse-0.0.4 lib/ventouse/filter_prefix.rb
programmable-ventouse-0.0.5 lib/ventouse/filter_prefix.rb
programmable-ventouse-0.0.7 lib/ventouse/filter_prefix.rb
programmable-ventouse-0.0.8 lib/ventouse/filter_prefix.rb
programmable-ventouse-0.0.9 lib/ventouse/filter_prefix.rb
programmable-ventouse-0.1.0 lib/ventouse/filter_prefix.rb