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