Class: SMF::Text

Inherits:
Meta show all
Defined in:
lib/smf.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#offset

Instance Method Summary collapse

Methods inherited from Event

#<=>, #eql?, #hash

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

#textObject

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