Class: TRuby::IR::RawCode

Inherits:
Node
  • Object
show all
Defined in:
lib/t_ruby/ir.rb

Overview

Raw Ruby code (for passthrough)

Instance Attribute Summary collapse

Attributes inherited from Node

#location, #metadata, #type_info

Instance Method Summary collapse

Methods inherited from Node

#accept, #children, #transform

Constructor Details

#initialize(code:, **opts) ⇒ RawCode

Returns a new instance of RawCode.



476
477
478
479
# File 'lib/t_ruby/ir.rb', line 476

def initialize(code:, **opts)
  super(**opts)
  @code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



474
475
476
# File 'lib/t_ruby/ir.rb', line 474

def code
  @code
end