Class: Cyrel::AST::OptimizedNodes::LiteralData

Inherits:
Data
  • Object
show all
Defined in:
lib/cyrel/ast/optimized_nodes.rb

Overview

Literal values - these are created frequently and benefit from Data

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



11
12
13
# File 'lib/cyrel/ast/optimized_nodes.rb', line 11

def value
  @value
end

Instance Method Details

#accept(visitor) ⇒ Object



12
13
14
# File 'lib/cyrel/ast/optimized_nodes.rb', line 12

def accept(visitor)
  visitor.visit_literal_data(self)
end