Class: MagicLogic::Atom
- Inherits:
-
Struct
- Object
- Struct
- MagicLogic::Atom
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
100
101
102
|
# File 'lib/magic_logic.rb', line 100
def p
@p
end
|
Instance Method Details
#!@ ⇒ Object
103
|
# File 'lib/magic_logic.rb', line 103
def !@; self end
|
#depth ⇒ Object
104
|
# File 'lib/magic_logic.rb', line 104
def depth; 1 end
|
#to_s ⇒ Object
102
|
# File 'lib/magic_logic.rb', line 102
def to_s; p.to_s end
|