Class: Bmg::Relation::InMemory
- Inherits:
-
Object
- Object
- Bmg::Relation::InMemory
- Includes:
- Bmg::Relation
- Defined in:
- lib/bmg/relation/in_memory.rb
Constant Summary
Constants included from Algebra
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #each(&bl) ⇒ Object
-
#initialize(type, operand) ⇒ InMemory
constructor
A new instance of InMemory.
- #inspect ⇒ Object
- #to_ast ⇒ Object
- #to_s ⇒ Object
Methods included from Bmg::Relation
#debug, #delete, empty, #empty?, #insert, new, #one, #one_or_nil, #to_json, #update, #visit, #ys_by_x
Methods included from Algebra
#allbut, #autosummarize, #autowrap, #constants, #extend, #group, #image, #matching, #page, #project, #rename, #restrict, #rxmatch, #spied, #union, #unspied
Constructor Details
#initialize(type, operand) ⇒ InMemory
Returns a new instance of InMemory.
6 7 8 9 |
# File 'lib/bmg/relation/in_memory.rb', line 6 def initialize(type, operand) @operand = operand @type = type end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
10 11 12 |
# File 'lib/bmg/relation/in_memory.rb', line 10 def operand @operand end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
10 11 12 |
# File 'lib/bmg/relation/in_memory.rb', line 10 def type @type end |
Instance Method Details
#each(&bl) ⇒ Object
14 15 16 |
# File 'lib/bmg/relation/in_memory.rb', line 14 def each(&bl) @operand.each(&bl) end |
#inspect ⇒ Object
26 27 28 |
# File 'lib/bmg/relation/in_memory.rb', line 26 def inspect "(in_memory #{operand.inspect})" end |
#to_ast ⇒ Object
18 19 20 |
# File 'lib/bmg/relation/in_memory.rb', line 18 def to_ast [ :in_memory, operand ] end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/bmg/relation/in_memory.rb', line 22 def to_s "(in_memory ...)" end |