Class: Riml::StringNode

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

Overview

type: :d or :s for double- or single-quoted

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

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



212
213
214
# File 'lib/nodes.rb', line 212

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



212
213
214
# File 'lib/nodes.rb', line 212

def value
  @value
end