Class: Maps::TreeNode
- Inherits:
-
Object
- Object
- Maps::TreeNode
- Includes:
- Enumerable
- Defined in:
- lib/rookout/processor/paths/canopy/maps.rb
Direct Known Subclasses
TreeNode1, TreeNode10, TreeNode11, TreeNode12, TreeNode13, TreeNode14, TreeNode15, TreeNode16, TreeNode17, TreeNode18, TreeNode19, TreeNode2, TreeNode20, TreeNode3, TreeNode4, TreeNode5, TreeNode6, TreeNode7, TreeNode8, TreeNode9
Instance Attribute Summary collapse
-
#elements ⇒ Object
readonly
Returns the value of attribute elements.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(text, offset, elements = []) ⇒ TreeNode
constructor
A new instance of TreeNode.
Constructor Details
#initialize(text, offset, elements = []) ⇒ TreeNode
Returns a new instance of TreeNode.
9 10 11 12 13 |
# File 'lib/rookout/processor/paths/canopy/maps.rb', line 9 def initialize(text, offset, elements = []) @text = text @offset = offset @elements = elements end |
Instance Attribute Details
#elements ⇒ Object (readonly)
Returns the value of attribute elements.
7 8 9 |
# File 'lib/rookout/processor/paths/canopy/maps.rb', line 7 def elements @elements end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
7 8 9 |
# File 'lib/rookout/processor/paths/canopy/maps.rb', line 7 def offset @offset end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
7 8 9 |
# File 'lib/rookout/processor/paths/canopy/maps.rb', line 7 def text @text end |
Instance Method Details
#each(&block) ⇒ Object
15 16 17 |
# File 'lib/rookout/processor/paths/canopy/maps.rb', line 15 def each(&block) @elements.each(&block) end |