Module: CSD::Extensions::Core::Object

Included in:
Object
Defined in:
lib/csd/extensions/core/object.rb

Instance Method Summary collapse

Instance Method Details

#pathnamifyObject

Creates a Pathname object from the current object. Preferrably from Strings and Hashes.



8
9
10
11
12
13
# File 'lib/csd/extensions/core/object.rb', line 8

def pathnamify
  case self
    when ::Pathname then self
    else ::Pathname.new(self)
  end
end