Class: Syobocal::Comment::Element::Root
- Inherits:
-
Object
- Object
- Syobocal::Comment::Element::Root
- Defined in:
- lib/syobocal/comment/element/root.rb
Instance Attribute Summary collapse
-
#elements ⇒ Object
readonly
Returns the value of attribute elements.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(elements) ⇒ Root
constructor
A new instance of Root.
Constructor Details
#initialize(elements) ⇒ Root
Returns a new instance of Root.
7 8 9 |
# File 'lib/syobocal/comment/element/root.rb', line 7 def initialize(elements) @elements = elements end |
Instance Attribute Details
#elements ⇒ Object (readonly)
Returns the value of attribute elements.
5 6 7 |
# File 'lib/syobocal/comment/element/root.rb', line 5 def elements @elements end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 |
# File 'lib/syobocal/comment/element/root.rb', line 11 def ==(other) other.elements == elements end |