Sha256: 1a8ebcc986e61fa69678692bebfa1066da4b0d064a8e743bebbea5d44f366dd7
Contents?: true
Size: 406 Bytes
Versions: 1
Compression:
Stored size: 406 Bytes
Contents
# frozen_string_literal: true module Zapata module Primitive class Arg < Base def node name = @code.to_a.first type = @code.type OpenStruct.new(type: type, name: name, body: @code) end def to_raw chosen_value = Predictor::Value.new(node.name, self).choose.to_raw return_with_super_as_missing(chosen_value, self) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zapata-1.0.0 | lib/zapata/primitive/arg.rb |