Class: Findyml::Key
- Inherits:
-
Struct
- Object
- Struct
- Findyml::Key
- Defined in:
- lib/findyml.rb
Instance Attribute Summary collapse
-
#alias_path ⇒ Object
Returns the value of attribute alias_path.
-
#file ⇒ Object
Returns the value of attribute file.
-
#node ⇒ Object
Returns the value of attribute node.
-
#path ⇒ Object
Returns the value of attribute path.
-
#terminal ⇒ Object
Returns the value of attribute terminal.
Instance Method Summary collapse
Instance Attribute Details
#alias_path ⇒ Object
Returns the value of attribute alias_path
10 11 12 |
# File 'lib/findyml.rb', line 10 def alias_path @alias_path end |
#file ⇒ Object
Returns the value of attribute file
10 11 12 |
# File 'lib/findyml.rb', line 10 def file @file end |
#node ⇒ Object
Returns the value of attribute node
10 11 12 |
# File 'lib/findyml.rb', line 10 def node @node end |
#path ⇒ Object
Returns the value of attribute path
10 11 12 |
# File 'lib/findyml.rb', line 10 def path @path end |
#terminal ⇒ Object
Returns the value of attribute terminal
10 11 12 |
# File 'lib/findyml.rb', line 10 def terminal @terminal end |
Instance Method Details
#col ⇒ Object
17 18 19 |
# File 'lib/findyml.rb', line 17 def col node.start_column + 1 end |
#inspect ⇒ Object
21 22 23 |
# File 'lib/findyml.rb', line 21 def inspect "#{path.map(&:inspect).join('.')} -> #{self}" end |
#line ⇒ Object
13 14 15 |
# File 'lib/findyml.rb', line 13 def line node.start_line + 1 end |
#terminal? ⇒ Boolean
11 |
# File 'lib/findyml.rb', line 11 def terminal? = terminal |