Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/meta_project/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#strip_trailing_slashObject



2
3
4
# File 'lib/meta_project/core_ext/string.rb', line 2

def strip_trailing_slash
  self[-1..-1] == "/" ? self[0..-2] : self
end