Sha256: c6027cc0750c5e0330ea85b4767341d4a9f46012d5f4185a40486d3d6fea668f
Contents?: true
Size: 505 Bytes
Versions: 2
Compression:
Stored size: 505 Bytes
Contents
module Alf module Operator::Relational class Unwrap < Alf::Operator() include Operator::Relational, Operator::Transform signature do |s| s.argument :attr, AttrName, :wrapped end protected # (see Operator::Transform#_tuple2tuple) def _tuple2tuple(tuple) tuple = tuple.dup wrapped = tuple.delete(@attr) || {} tuple.merge(wrapped) end end # class Unwrap end # module Operator::Relational end # module Alf
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-0.10.1 | lib/alf/operator/relational/unwrap.rb |
alf-0.10.0 | lib/alf/operator/relational/unwrap.rb |