Class: Riml::SIDNode

Inherits:
LiteralNode show all
Defined in:
lib/nodes.rb

Constant Summary

Constants included from Visitable

Visitable::DESCENDANT_OF_REGEX

Instance Attribute Summary

Attributes inherited from LiteralNode

#value

Attributes included from Visitable

#compiled_output, #force_newline, #parent_node, #scope

Instance Method Summary collapse

Methods included from Visitable

#accept, #method_missing, #respond_to?

Constructor Details

#initialize(ident = 'SID') ⇒ SIDNode

Returns a new instance of SIDNode.



276
277
278
279
# File 'lib/nodes.rb', line 276

def initialize(ident = 'SID')
  Riml.warn("expected #{ident} to be SID") unless ident == 'SID'
  super('<SID>')
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Riml::Visitable