Class: Rjq::BytecodeFunctionDefinition
- Inherits:
-
Struct
- Object
- Struct
- Rjq::BytecodeFunctionDefinition
- Defined in:
- lib/rjq/opcodes.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#closure ⇒ Object
Returns the value of attribute closure.
-
#name ⇒ Object
Returns the value of attribute name.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
44 45 46 |
# File 'lib/rjq/opcodes.rb', line 44 def body @body end |
#closure ⇒ Object
Returns the value of attribute closure
44 45 46 |
# File 'lib/rjq/opcodes.rb', line 44 def closure @closure end |
#name ⇒ Object
Returns the value of attribute name
44 45 46 |
# File 'lib/rjq/opcodes.rb', line 44 def name @name end |
#params ⇒ Object
Returns the value of attribute params
44 45 46 |
# File 'lib/rjq/opcodes.rb', line 44 def params @params end |
Instance Method Details
#with_closure(functions) ⇒ Object
45 46 47 |
# File 'lib/rjq/opcodes.rb', line 45 def with_closure(functions) self.class.new(name: name, params: params, body: body, closure: functions) end |