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(other) ⇒ Not

Returns a new instance of Not.



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

def initialize(other)
  @other = other
end

Instance Attribute Details

#otherObject (readonly)

Returns the value of attribute other.



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

def other
  @other
end

Instance Method Details

#describe_to(visitor, arg) ⇒ Object



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

def describe_to(visitor, arg)
  visitor.not(self, arg)
end