Class: Dir_tag
- Inherits:
-
Reference_mentioned_tag
- Object
- Aozora_tag
- Reference_mentioned_tag
- Dir_tag
- Defined in:
- lib/t2hs.rb
Instance Attribute Summary
Attributes inherited from Reference_mentioned_tag
Instance Method Summary collapse
-
#initialize(parser, target) ⇒ Dir_tag
constructor
A new instance of Dir_tag.
- #to_s ⇒ Object
Methods inherited from Reference_mentioned_tag
#block_element?, #target_string
Methods inherited from Aozora_tag
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_s ⇒ Object
651 652 653 |
# File 'lib/t2hs.rb', line 651 def to_s "<span dir=\"ltr\">#{@target.to_s}</span>" end |