Class: Bool::Not

Inherits:
Object
  • Object
show all
Defined in:
lib/bool/ast.rb,
ext/bool_ext/ext.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operand) ⇒ Not

Returns a new instance of Not.



44
45
46
# File 'lib/bool/ast.rb', line 44

def initialize(operand)
  @operand = operand
end

Instance Attribute Details

#operandObject (readonly)

Returns the value of attribute operand.



42
43
44
# File 'lib/bool/ast.rb', line 42

def operand
  @operand
end

Instance Method Details

#accept(visitor, arg) ⇒ Object



48
49
50
# File 'lib/bool/ast.rb', line 48

def accept(visitor, arg)
  visitor.visit_not(self, arg)
end