Class: SMF::Text
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Event
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(offset, text) ⇒ Text
constructor
A new instance of Text.
Methods inherited from Event
Constructor Details
#initialize(offset, text) ⇒ Text
Returns a new instance of Text.
564 565 566 567 568 |
# File 'lib/smf.rb', line 564 def initialize(offset, text) # text.length:0/2**28-1 super(offset) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
570 571 572 |
# File 'lib/smf.rb', line 570 def text @text end |
Instance Method Details
#==(other) ⇒ Object
572 573 574 |
# File 'lib/smf.rb', line 572 def == (other) super && text == other.text end |