Class: Dir_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) ⇒ Dir_tag

Returns a new instance of Dir_tag.



647
648
649
650
# File 'lib/t2hs.rb', line 647

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

Instance Method Details

#to_sObject



651
652
653
# File 'lib/t2hs.rb', line 651

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