Class: TRuby::IR::RawCode
Overview
Raw Ruby code (for passthrough)
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Attributes inherited from Node
#location, #metadata, #type_info
Instance Method Summary collapse
-
#initialize(code:, **opts) ⇒ RawCode
constructor
A new instance of RawCode.
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
#code ⇒ Object
Returns the value of attribute code.
474 475 476 |
# File 'lib/t_ruby/ir.rb', line 474 def code @code end |