class Pione::Lang::ParameterSetSequence
Public Instance Methods
each() { |set(pieces: [pset])| ... }
click to toggle source
# File lib/pione/lang/parameters.rb, line 95 def each if block_given? pieces.each {|piece| piece.each {|pset| yield set(pieces: [pset])}} else Enumerator.new(self, :each) end end
merge(other)
click to toggle source
# File lib/pione/lang/parameters.rb, line 103 def merge(other) if pieces.empty? set(pieces: other.pieces) else map2(other) do |rec_piece, other_piece| rec_piece.set(table: rec_piece.table.merge(other_piece.table)) end end end