class String

Public Instance Methods

to_pathname() click to toggle source
# File lib/datapimp/core_ext.rb, line 14
def to_pathname
  Pathname(self)
end
with_leading_slash() click to toggle source
# File lib/datapimp/core_ext.rb, line 22
def with_leading_slash
  "/#{without_leading_slash}"
end
without_leading_slash() click to toggle source
# File lib/datapimp/core_ext.rb, line 18
def without_leading_slash
  gsub(/^\//,'')
end