class Calibrate::Configurable::DirectoryStructure::StructurePath
Public Class Methods
new(rel_path)
click to toggle source
No path - ambiguous whether that would be abspath or pathname
# File lib/calibrate/configurable/directory-structure.rb, line 26 def initialize(rel_path) self.relative_path = rel_path unless rel_path == Configurable::RequiredField end
Public Instance Methods
inspect()
click to toggle source
# File lib/calibrate/configurable/directory-structure.rb, line 45 def inspect "<path: #{ if field_unset?(:absolute_path) if field_unset?(:relative_path) "<<?>>" else "?/#{relative_path}" end else absolute_path.inspect end }>" end
pathname()
click to toggle source
# File lib/calibrate/configurable/directory-structure.rb, line 30 def pathname @pathname ||= begin fail_unless_set(:absolute_path) require 'pathname' Pathname.new(absolute_path) end end
Also aliased as: path_name
to_s()
click to toggle source
# File lib/calibrate/configurable/directory-structure.rb, line 40 def to_s fail_unless_set(:absolute_path) absolute_path end