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.
488 489 490 491 |
# File 'lib/t_ruby/ir.rb', line 488 def initialize(code:, **opts) super(**opts) @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
486 487 488 |
# File 'lib/t_ruby/ir.rb', line 486 def code @code end |