Class: Syobocal::Comment::Element::Root

Inherits:
Object
  • Object
show all
Defined in:
lib/syobocal/comment/element/root.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#elementsObject (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