Class: LLT::Token::XmlTag

Inherits:
LLT::Token show all
Defined in:
lib/llt/token/xml_tag.rb

Instance Attribute Summary

Attributes inherited from LLT::Token

#functions, #special_roles

Instance Method Summary collapse

Methods inherited from LLT::Token

#==, #add_form, #add_forms, #has_special_role?, #initialize, #set_special_role, #use

Constructor Details

This class inherits a constructor from LLT::Token

Instance Method Details

#inspectObject



13
14
15
# File 'lib/llt/token/xml_tag.rb', line 13

def inspect
  "#{'XML tag'.blue} #{tag_status}: #{to_s}"
end

#set_functionsObject



4
5
6
# File 'lib/llt/token/xml_tag.rb', line 4

def set_functions
  [:xml_tag]
end

#to_xml(*args) ⇒ Object

overrides #to_xml from Containable - the tag stays as it is



9
10
11
# File 'lib/llt/token/xml_tag.rb', line 9

def to_xml(*args)
  to_s
end