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.2.11 lib/datapimp/core_ext.rb
datapimp-1.2.10 lib/datapimp/core_ext.rb
datapimp-1.2.9 lib/datapimp/core_ext.rb
datapimp-1.2.8 lib/datapimp/core_ext.rb
datapimp-1.2.7 lib/datapimp/core_ext.rb
datapimp-1.2.6 lib/datapimp/core_ext.rb
datapimp-1.2.5 lib/datapimp/core_ext.rb
datapimp-1.2.4 lib/datapimp/core_ext.rb
datapimp-1.2.3 lib/datapimp/core_ext.rb
datapimp-1.2.2 lib/datapimp/core_ext.rb
datapimp-1.2.1 lib/datapimp/core_ext.rb
datapimp-1.2.0 lib/datapimp/core_ext.rb
datapimp-1.1.1 lib/datapimp/core_ext.rb
datapimp-1.1.0 lib/datapimp/core_ext.rb
datapimp-1.0.29 lib/datapimp/core_ext.rb
datapimp-1.0.28 lib/datapimp/core_ext.rb
datapimp-1.0.27 lib/datapimp/core_ext.rb
datapimp-1.0.26 lib/datapimp/core_ext.rb
datapimp-1.0.25 lib/datapimp/core_ext.rb
datapimp-1.0.24 lib/datapimp/core_ext.rb