Class: Fable::Tag

Inherits:
RuntimeObject show all
Defined in:
lib/fable/tag.rb

Instance Attribute Summary collapse

Attributes inherited from RuntimeObject

#original_object, #own_debug_metadata, #parent, #path

Instance Method Summary collapse

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

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/fable/tag.rb', line 3

def text
  @text
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/fable/tag.rb', line 10

def to_s
  return "# #{self.text}"
end