Class: Axiom::Relation::Empty
- Inherits:
-
Materialized
- Object
- Axiom::Relation
- Materialized
- Axiom::Relation::Empty
- Defined in:
- lib/axiom/relation/empty.rb
Overview
An empty relation
Constant Summary collapse
- ZERO_TUPLE =
EMPTY_ARRAY
Instance Attribute Summary
Attributes inherited from Materialized
Attributes inherited from Axiom::Relation
Instance Method Summary collapse
-
#each ⇒ self
Noop #each method.
-
#initialize(_header, _tuples = ZERO_TUPLE) ⇒ undefined
constructor
Initialize an empty Relation.
-
#size ⇒ 0
Return the number of tuples.
Methods inherited from Materialized
Methods inherited from Axiom::Relation
#==, #[], #directions, #empty?, #include?, #materialize, #materialized?, new, #one, #replace
Methods included from Visitable
Constructor Details
#initialize(_header, _tuples = ZERO_TUPLE) ⇒ undefined
Initialize an empty Relation
20 21 22 |
# File 'lib/axiom/relation/empty.rb', line 20 def initialize(_header, _tuples = ZERO_TUPLE) super end |
Instance Method Details
#each ⇒ self
Noop #each method
33 34 35 36 |
# File 'lib/axiom/relation/empty.rb', line 33 def each return to_enum unless block_given? self end |
#size ⇒ 0
Return the number of tuples
46 47 48 |
# File 'lib/axiom/relation/empty.rb', line 46 def size 0 end |