class Zapata::Primitive::Arg
Public Instance Methods
node()
click to toggle source
# File lib/zapata/primitive/arg.rb, line 6 def node name = @code.to_a.first type = @code.type OpenStruct.new(type: type, name: name, body: @code) end
to_raw()
click to toggle source
# File lib/zapata/primitive/arg.rb, line 12 def to_raw chosen_value = Predictor::Value.new(node.name, self).choose.to_raw return_with_super_as_missing(chosen_value, self) end