module PathMapper::Node::Base::Representation

Public Instance Methods

any?() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 21
def any?
end
bool() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 44
def bool
end
dir?() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 5
def dir?
  @path.directory?
end
empty?() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 13
def empty?
  true
end
file?() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 9
def file?
  @path.file?
end
float() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 40
def float
  self.value.to_f
end
inspect() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 67
def inspect
  self.to_s
end
int() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 36
def int
  self.value.to_i
end
json() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 51
def json
  JSON.load(self.value)
end
lines() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 47
def lines
  []
end
nil?() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 17
def nil?
  false
end
node?() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 24
def node?
  true
end
raw_value() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 32
def raw_value
  nil
end
to_pathname() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 63
def to_pathname
  @path
end
to_s() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 55
def to_s
  @path.to_s
end
to_str() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 59
def to_str
  self.to_s
end
value() click to toggle source
# File lib/path_mapper/node/base/representation.rb, line 28
def value
  nil
end