Class: Riml::LiteralNode

Inherits:
Struct
  • Object
show all
Includes:
Visitable
Defined in:
lib/nodes.rb

Overview

Literals are static values that have a Ruby representation, eg.: a string, number, list, true, false, nil, etc.

Constant Summary

Constants included from Visitable

Visitable::DESCENDANT_OF_REGEX

Instance Attribute Summary collapse

Attributes included from Visitable

#compiled_output, #force_newline, #parent_node, #scope

Method Summary

Methods included from Visitable

#accept, #method_missing, #respond_to?

Dynamic Method Handling

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

Instance Attribute Details

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



202
203
204
# File 'lib/nodes.rb', line 202

def value
  @value
end