class Eiwa::Tag::SourceLanguage
Attributes
language[R]
text[R]
type[R]
wasei[R]
Public Class Methods
new(text: nil, language: "eng", wasei: false, type: "full")
click to toggle source
# File lib/eiwa/tag/source_language.rb, line 6 def initialize(text: nil, language: "eng", wasei: false, type: "full") @text = text @language = language @wasei = wasei @type = type end
Public Instance Methods
end_self()
click to toggle source
# File lib/eiwa/tag/source_language.rb, line 13 def end_self @text = @characters @language = @attrs["xml:lang"] @wasei = @attrs["ls_wasei"] == "y" @type = @attrs["ls_type"] || "full" end
eql?(other)
click to toggle source
# File lib/eiwa/tag/source_language.rb, line 20 def eql?(other) @text == other.text && @language == other.language && @wasei == other.wasei && @type == other.type end
Also aliased as: ==
hash()
click to toggle source
# File lib/eiwa/tag/source_language.rb, line 28 def hash @text.hash + @language.hash + @wasei.hash + @type.hash end