Sha256: 81cf2c7a5a4466eb7029b0f88edb7086b4c874c71d9ecd3df2b99ff61eeb4a3e
Contents?: true
Size: 815 Bytes
Versions: 5
Compression:
Stored size: 815 Bytes
Contents
module Alf module Relvar class Fake include Relvar def initialize(expr, heading) super(expr) @heading = Heading.coerce(heading) @connection = connection end attr_reader :heading def insert(tuples) @inserted_tuples = tuples.to_a end attr_reader :inserted_tuples def delete(predicate = Predicate.tautology) @delete_predicate = predicate end attr_reader :delete_predicate def update(updating, predicate = Predicate.tautology) @updating = updating.to_hash @update_predicate = predicate end attr_reader :updating attr_reader :update_predicate def to_lispy "Relvar::Fake(#{heading.to_lispy})" end end # class Fake end # module end # module Alf
Version data entries
5 entries across 5 versions & 1 rubygems