module Bmg::Operator::Unary
Attributes
operand[RW]
Public Instance Methods
bind(binding)
click to toggle source
# File lib/bmg/operator/shared/unary.rb, line 6 def bind(binding) _with_operand(operand.bind(binding)) end
Protected Instance Methods
_visit(parent, visitor)
click to toggle source
# File lib/bmg/operator/shared/unary.rb, line 14 def _visit(parent, visitor) visitor.call(self, parent) operand._visit(self, visitor) end
_with_operand(operand)
click to toggle source
# File lib/bmg/operator/shared/unary.rb, line 19 def _with_operand(operand) dup.tap{|d| d.operand = operand } end
operands()
click to toggle source
# File lib/bmg/operator/shared/unary.rb, line 23 def operands [operand] end