Class: MagicLogic::NEG
- Inherits:
-
Struct
- Object
- Struct
- MagicLogic::NEG
show all
- Includes:
- Base
- Defined in:
- lib/magic_logic.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Utils
#dpll, #include?, #is_and?, #is_form?, #is_neg?, #is_or?, #neg?
Methods included from Operator
#<=>, #>=, #_, #~@
Instance Attribute Details
#p ⇒ Object
Returns the value of attribute p
112
113
114
|
# File 'lib/magic_logic.rb', line 112
def p
@p
end
|
Instance Method Details
#!@ ⇒ Object
115
|
# File 'lib/magic_logic.rb', line 115
def !@; ~(!p) end
|
#depth ⇒ Object
116
|
# File 'lib/magic_logic.rb', line 116
def depth; p.depth+1 end
|
#to_s ⇒ Object
114
|
# File 'lib/magic_logic.rb', line 114
def to_s; "~#{p}" end
|