Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ventouse/filter_prefix.rb

Instance Method Summary collapse

Instance Method Details

#filter_prefix(prefix) ⇒ Object



2
3
4
# File 'lib/ventouse/filter_prefix.rb', line 2

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