class Eiwa::Tag::Entity
Attributes
code[R]
text[R]
Public Class Methods
new(code: nil, text: nil)
click to toggle source
# File lib/eiwa/tag/entity.rb, line 6 def initialize(code: nil, text: nil) @code = code @text = text end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/eiwa/tag/entity.rb, line 16 def eql?(other) @code == other.code && @text == other.text end
Also aliased as: ==
hash()
click to toggle source
# File lib/eiwa/tag/entity.rb, line 22 def hash @code.hash + @text.hash end
set_entity(code, text)
click to toggle source
# File lib/eiwa/tag/entity.rb, line 11 def set_entity(code, text) @code = code @text = text end