Sha256: 29f13dd3cfdab8436d228e21c8966bf2710c6b005f5d95e775063ef8d2b3b87e

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

# encoding: utf-8
module CSD
  module Extensions
    module Core
      module Object
        
        # Creates a Pathname object from the current object. Preferrably from Strings and Hashes.
        #
        def pathnamify
          case self
            when ::Pathname then self
            else ::Pathname.new(self)
          end
        end
        
      end
    end
  end
end

class Object #:nodoc:
  include CSD::Extensions::Core::Object
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
csd-0.1.5 lib/csd/extensions/core/object.rb
csd-0.1.4 lib/csd/extensions/core/object.rb
csd-0.1.3 lib/csd/extensions/core/object.rb