class Bmg::Relation::Spied
Attributes
spy[R]
Public Class Methods
new(operand, spy)
click to toggle source
# File lib/bmg/relation/spied.rb, line 6 def initialize(operand, spy) @operand = operand @spy = spy end
Public Instance Methods
count()
click to toggle source
# File lib/bmg/relation/spied.rb, line 31 def count spy.call(self) if bl operand.count end
each(&bl)
click to toggle source
# File lib/bmg/relation/spied.rb, line 26 def each(&bl) spy.call(self) if bl operand.each(&bl) end
to_ast()
click to toggle source
# File lib/bmg/relation/spied.rb, line 36 def to_ast [ :spied, operand.to_ast, spy ] end
type()
click to toggle source
# File lib/bmg/relation/spied.rb, line 17 def type operand.type end
unspied()
click to toggle source
# File lib/bmg/relation/spied.rb, line 51 def unspied operand end
Protected Instance Methods
type=(type)
click to toggle source
# File lib/bmg/relation/spied.rb, line 21 def type=(type) operand.type = type end