class String
Extension for String
class
Public Instance Methods
append_last_slash()
click to toggle source
# File lib/abrupt.rb, line 13 def append_last_slash gsub(%r{([^\/])$}, '\1/') end
remove_last_slashes()
click to toggle source
# File lib/abrupt.rb, line 9 def remove_last_slashes gsub(%r{([\/]*)$}, '') end