Class: Inline_caption_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_caption_tag

Returns a new instance of Inline_caption_tag.



587
588
589
590
# File 'lib/t2hs.rb', line 587

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

Instance Method Details

#to_sObject



591
592
593
# File 'lib/t2hs.rb', line 591

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