Class: Eiwa::Tag::Spelling
Instance Attribute Summary collapse
-
#frequency_tags ⇒ Object
readonly
Returns the value of attribute frequency_tags.
-
#info_tags ⇒ Object
readonly
Returns the value of attribute info_tags.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Any
#characters, #parent, #tag_name
Instance Method Summary collapse
- #end_child(child) ⇒ Object
-
#initialize ⇒ Spelling
constructor
A new instance of Spelling.
Methods inherited from Any
#add_characters, #end_self, #start, #to_s
Constructor Details
#initialize ⇒ Spelling
Returns a new instance of Spelling.
6 7 8 9 |
# File 'lib/eiwa/tag/spelling.rb', line 6 def initialize @frequency_tags = [] @info_tags = [] end |
Instance Attribute Details
#frequency_tags ⇒ Object (readonly)
Returns the value of attribute frequency_tags.
4 5 6 |
# File 'lib/eiwa/tag/spelling.rb', line 4 def @frequency_tags end |
#info_tags ⇒ Object (readonly)
Returns the value of attribute info_tags.
4 5 6 |
# File 'lib/eiwa/tag/spelling.rb', line 4 def @info_tags end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
4 5 6 |
# File 'lib/eiwa/tag/spelling.rb', line 4 def text @text end |
Instance Method Details
#end_child(child) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/eiwa/tag/spelling.rb', line 11 def end_child(child) case child.tag_name when "keb" @text = child.characters when "ke_pri" @frequency_tags << child.characters.to_sym when "ke_inf" @info_tags << child end end |