Class: Fable::Tag
- Inherits:
-
RuntimeObject
- Object
- RuntimeObject
- Fable::Tag
- Defined in:
- lib/fable/tag.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from RuntimeObject
#original_object, #own_debug_metadata, #parent, #path
Instance Method Summary collapse
-
#initialize(tag_text) ⇒ Tag
constructor
A new instance of Tag.
- #to_s ⇒ Object
Methods inherited from RuntimeObject
#compact_path_string, #convert_path_to_relative, #copy, #debug_line_number_of_path, #debug_metadata, #indentation_string, #resolve_path, #root_content_container
Constructor Details
#initialize(tag_text) ⇒ Tag
Returns a new instance of Tag.
5 6 7 8 |
# File 'lib/fable/tag.rb', line 5 def initialize(tag_text) super() self.text = tag_text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/fable/tag.rb', line 3 def text @text end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/fable/tag.rb', line 10 def to_s return "# #{self.text}" end |