Module: RubyProlog

Defined in:
lib/ruby-prolog/ruby-prolog.rb,
lib/ruby-prolog.rb,
lib/ruby-prolog/version.rb

Overview

Based on tiny_prolog h18.9/8 Fuglied by Preston Lee.

Defined Under Namespace

Classes: CallbackEnvironment, Cons, Core, Database, Environment, Goal, Predicate, TempClause

Constant Summary collapse

VERSION =
'2.4.0'

Class Method Summary collapse

Class Method Details

.new(&block) ⇒ Object



5
6
7
8
9
# File 'lib/ruby-prolog/ruby-prolog.rb', line 5

def self.new(&block)
  c = Core.new
  c.instance_eval(&block) if block_given?
  c
end