Class: Hilbert::World::PropositionalLogic::Atom
- Inherits:
-
Object
- Object
- Hilbert::World::PropositionalLogic::Atom
- Includes:
- Base
- Defined in:
- lib/hilbert/world/propositional_logic.rb
Instance Attribute Summary collapse
-
#p ⇒ Object
Returns the value of attribute p.
Instance Method Summary collapse
- #!@ ⇒ Object
- #deep ⇒ Object
-
#initialize(p) ⇒ Atom
constructor
A new instance of Atom.
- #to_s ⇒ Object
Methods included from Utils
#include?, #is_and?, #is_form?, #is_neg?, #is_or?, #neg?
Methods included from Operator
Constructor Details
#initialize(p) ⇒ Atom
Returns a new instance of Atom.
103 |
# File 'lib/hilbert/world/propositional_logic.rb', line 103 def initialize(p); @p = p end |
Instance Attribute Details
#p ⇒ Object
Returns the value of attribute p.
102 103 104 |
# File 'lib/hilbert/world/propositional_logic.rb', line 102 def p @p end |
Instance Method Details
#!@ ⇒ Object
105 |
# File 'lib/hilbert/world/propositional_logic.rb', line 105 def !@; self end |
#deep ⇒ Object
106 |
# File 'lib/hilbert/world/propositional_logic.rb', line 106 def deep; 1 end |
#to_s ⇒ Object
104 |
# File 'lib/hilbert/world/propositional_logic.rb', line 104 def to_s; @p.to_s end |