Module: PathMapper::Node::Base::Representation
- Included in:
- PathMapper::Node::Base
- Defined in:
- lib/path_mapper/node/base/representation.rb
Instance Method Summary collapse
- #any? ⇒ Boolean
- #bool ⇒ Object
- #dir? ⇒ Boolean
- #empty? ⇒ Boolean
- #file? ⇒ Boolean
- #float ⇒ Object
- #inspect ⇒ Object
- #int ⇒ Object
- #json ⇒ Object
- #lines ⇒ Object
- #nil? ⇒ Boolean
- #node? ⇒ Boolean
- #raw_value ⇒ Object
- #to_pathname ⇒ Object
- #to_s ⇒ Object
- #to_str ⇒ Object
- #value ⇒ Object
Instance Method Details
#any? ⇒ Boolean
21 22 |
# File 'lib/path_mapper/node/base/representation.rb', line 21 def any? end |
#bool ⇒ Object
44 45 |
# File 'lib/path_mapper/node/base/representation.rb', line 44 def bool end |
#dir? ⇒ Boolean
5 6 7 |
# File 'lib/path_mapper/node/base/representation.rb', line 5 def dir? @path.directory? end |
#empty? ⇒ Boolean
13 14 15 |
# File 'lib/path_mapper/node/base/representation.rb', line 13 def empty? true end |
#file? ⇒ Boolean
9 10 11 |
# File 'lib/path_mapper/node/base/representation.rb', line 9 def file? @path.file? end |
#float ⇒ Object
40 41 42 |
# File 'lib/path_mapper/node/base/representation.rb', line 40 def float self.value.to_f end |
#inspect ⇒ Object
67 68 69 |
# File 'lib/path_mapper/node/base/representation.rb', line 67 def inspect self.to_s end |
#int ⇒ Object
36 37 38 |
# File 'lib/path_mapper/node/base/representation.rb', line 36 def int self.value.to_i end |
#json ⇒ Object
51 52 53 |
# File 'lib/path_mapper/node/base/representation.rb', line 51 def json JSON.load(self.value) end |
#lines ⇒ Object
47 48 49 |
# File 'lib/path_mapper/node/base/representation.rb', line 47 def lines [] end |
#nil? ⇒ Boolean
17 18 19 |
# File 'lib/path_mapper/node/base/representation.rb', line 17 def nil? false end |
#node? ⇒ Boolean
24 25 26 |
# File 'lib/path_mapper/node/base/representation.rb', line 24 def node? true end |
#raw_value ⇒ Object
32 33 34 |
# File 'lib/path_mapper/node/base/representation.rb', line 32 def raw_value nil end |
#to_pathname ⇒ Object
63 64 65 |
# File 'lib/path_mapper/node/base/representation.rb', line 63 def to_pathname @path end |
#to_s ⇒ Object
55 56 57 |
# File 'lib/path_mapper/node/base/representation.rb', line 55 def to_s @path.to_s end |
#to_str ⇒ Object
59 60 61 |
# File 'lib/path_mapper/node/base/representation.rb', line 59 def to_str self.to_s end |
#value ⇒ Object
28 29 30 |
# File 'lib/path_mapper/node/base/representation.rb', line 28 def value nil end |