Method: Path#path

Defined in:
lib/epath/identity.rb

#pathObject (readonly) Also known as: to_s, to_path, to_str

Returns the path as a String. #path is implemented for better readability (file.path instead of file.to_s) and as an accessor. #to_path is implemented so Path objects are usable with open, etc. #to_str is implemented so Path objects are usable with open, etc with Ruby 1.8 (it is not defined in Ruby 1.9).



84
85
86
# File 'lib/epath/identity.rb', line 84

def path
  @path
end