Class: Hilbert::World::PropositionalLogic::Atom

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/hilbert/world/propositional_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

#*, #+, #<=>, #>=, #~@

Constructor Details

#initialize(p) ⇒ Atom

Returns a new instance of Atom.



107
# File 'lib/hilbert/world/propositional_logic.rb', line 107

def initialize(p); @p = p  end

Instance Attribute Details

#pObject

Returns the value of attribute p.



106
107
108
# File 'lib/hilbert/world/propositional_logic.rb', line 106

def p
  @p
end

Instance Method Details

#!@Object



109
# File 'lib/hilbert/world/propositional_logic.rb', line 109

def !@;            self    end

#deepObject



110
# File 'lib/hilbert/world/propositional_logic.rb', line 110

def deep;          1       end

#to_sObject



108
# File 'lib/hilbert/world/propositional_logic.rb', line 108

def to_s;          @p.to_s end