Class: Okurigana_tag

Inherits:
Kunten_tag show all
Defined in:
lib/t2hs.rb

Instance Method Summary collapse

Methods inherited from Aozora_tag

#inspect, #syntax_error

Constructor Details

#initialize(parser, string) ⇒ Okurigana_tag

Returns a new instance of Okurigana_tag.



557
558
559
560
# File 'lib/t2hs.rb', line 557

def initialize (parser, string)
  @string = string
  super
end

Instance Method Details

#to_sObject



561
562
563
# File 'lib/t2hs.rb', line 561

def to_s
  "<sup class=\"okurigana\">#{@string.to_s}</sup>"
end