Sha256: 39f685eb8ce8699dbf2d0832622466a91cc617265b86910634f64c5e38c476bd

Contents?: true

Size: 294 Bytes

Versions: 32

Compression:

Stored size: 294 Bytes

Contents

class Hash
  def to_mash
    Hashie::Mash.new(self)
  end
end

class Pathname
  def to_pathname
    self
  end
end

class String
  def to_pathname
    Pathname(self)
  end

  def without_leading_slash
    gsub(/^\//,'')
  end

  def with_leading_slash
    "/#{without_leading_slash}"
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
datapimp-1.0.23 lib/datapimp/core_ext.rb
datapimp-1.0.22 lib/datapimp/core_ext.rb
datapimp-1.0.21 lib/datapimp/core_ext.rb
datapimp-1.0.20 lib/datapimp/core_ext.rb
datapimp-1.0.15 lib/datapimp/core_ext.rb
datapimp-1.0.14 lib/datapimp/core_ext.rb
datapimp-1.0.13 lib/datapimp/core_ext.rb
datapimp-1.0.12 lib/datapimp/core_ext.rb
datapimp-1.0.11 lib/datapimp/core_ext.rb
datapimp-1.0.10 lib/datapimp/core_ext.rb
datapimp-1.0.9 lib/datapimp/core_ext.rb
datapimp-1.0.8 lib/datapimp/core_ext.rb