Class: ManaMana::RDSL::NodeWithOffset
- Defined in:
- lib/manamana/rdsl/nodes.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Attributes inherited from Node
Instance Method Summary collapse
- #==(other_node) ⇒ Object
-
#initialize(options = {}, children = []) ⇒ NodeWithOffset
constructor
A new instance of NodeWithOffset.
Constructor Details
#initialize(options = {}, children = []) ⇒ NodeWithOffset
Returns a new instance of NodeWithOffset.
21 22 23 24 |
# File 'lib/manamana/rdsl/nodes.rb', line 21 def initialize(={}, children=[]) @offset = [:offset] || nil super , children end |
Instance Attribute Details
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
19 20 21 |
# File 'lib/manamana/rdsl/nodes.rb', line 19 def offset @offset end |
Instance Method Details
#==(other_node) ⇒ Object
26 27 28 |
# File 'lib/manamana/rdsl/nodes.rb', line 26 def ==(other_node) super(other_node) && @offset == other_node.offset end |