Class: Zapata::Primitive::Optarg
- Defined in:
- lib/zapata/primitive/optarg.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#dive_deeper, #initialize, #name, #return_with_missing_as_super, #return_with_super_as_missing
Constructor Details
This class inherits a constructor from Zapata::Primitive::Base
Instance Method Details
#node ⇒ Object
6 7 8 9 10 |
# File 'lib/zapata/primitive/optarg.rb', line 6 def node name, body = @code.to_a type = @code.type OpenStruct.new(type: type, name: name, body: body) end |