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.



492
493
494
495
# File 'lib/t_ruby/ir.rb', line 492

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



490
491
492
# File 'lib/t_ruby/ir.rb', line 490

def code
  @code
end