Sha256: 5be74ba215f37ee38f36f8a3a8402ba661cc0631ecc2106c31f704ce594fc43b
Contents?: true
Size: 1020 Bytes
Versions: 3
Compression:
Stored size: 1020 Bytes
Contents
# encoding: utf-8 module Axiom class Relation module Operation # A class representing an insertion into a relation class Insertion < Relation include Proxy # Initialize an Insertion # # @param [Array(Relation, Relation)] args # # @return [undefined] # # @api private def initialize(*args) @relation = Algebra::Union.new(*args) end module Methods # Return a relation that represents an insertion into a relation # # @example # insertion = relation.insert(other) # # @param [Enumerable] other # # @return [Insertion] # # @api public def insert(other) Insertion.new(self, coerce(other)) end end # module Methods Relation.class_eval { include Methods } end # class Insertion end # module Operation end # class Relation end # module Axiom
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | lib/axiom/relation/operation/insertion.rb |
axiom-0.1.1 | lib/axiom/relation/operation/insertion.rb |
axiom-0.1.0 | lib/axiom/relation/operation/insertion.rb |