class Bmg::Relation::Leaf
Attributes
operand[R]
type[RW]
Public Class Methods
new(type, operand)
click to toggle source
# File lib/bmg/relation/in_memory.rb, line 6 def initialize(type, operand) @operand = operand @type = type end
Public Instance Methods
_count()
click to toggle source
Calls superclass method
Bmg::Relation#_count
# File lib/bmg/relation/in_memory.rb, line 19 def _count if operand.respond_to?(:count) operand.count elsif operand.respond_to?(:size) operand.size else super end end
each(&bl)
click to toggle source
# File lib/bmg/relation/in_memory.rb, line 15 def each(&bl) @operand.each(&bl) end
inspect()
click to toggle source
# File lib/bmg/relation/in_memory.rb, line 37 def inspect "(in_memory #{operand.inspect})" end
to_ast()
click to toggle source
# File lib/bmg/relation/in_memory.rb, line 29 def to_ast [ :in_memory, operand ] end
to_s()
click to toggle source
# File lib/bmg/relation/in_memory.rb, line 33 def to_s "(in_memory ...)" end