class String
Public Instance Methods
last_character()
click to toggle source
# File lib/bark/utils/string_helpers.rb, line 2 def last_character self[-1] end
with_trailing_slash()
click to toggle source
# File lib/bark/utils/string_helpers.rb, line 6 def with_trailing_slash return self + '/' if last_character != '/' self end