Class: Inline_keigakomi_tag

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

Instance Attribute Summary

Attributes inherited from Reference_mentioned_tag

#target

Instance Method Summary collapse

Methods inherited from Reference_mentioned_tag

#block_element?, #target_string

Methods inherited from Aozora_tag

#inspect, #syntax_error

Constructor Details

#initialize(parser, target) ⇒ Inline_keigakomi_tag

Returns a new instance of Inline_keigakomi_tag.



567
568
569
570
# File 'lib/t2hs.rb', line 567

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

Instance Method Details

#to_sObject



571
572
573
# File 'lib/t2hs.rb', line 571

def to_s
  "<span class=\"keigakomi\">#{@target.to_s}</span>"
end