Skip to content

uninitialized constant while trying to run examples #2

@grych

Description

@grych

Hi,
This is a great idea to implement Prolog in Ruby! However, when I am trying to run the examples, I am having uninitialized constant error, like:

rubylog1.rb:8:in `block in <main>': uninitialized constant N (NameError)
    from /Users/grych/.rvm/gems/ruby-1.9.3-p385/gems/rubylog-1.0.0/lib/rubylog/theory.rb:121:in `instance_exec'
    from /Users/grych/.rvm/gems/ruby-1.9.3-p385/gems/rubylog-1.0.0/lib/rubylog/theory.rb:121:in `with_context'
    from /Users/grych/.rvm/gems/ruby-1.9.3-p385/gems/rubylog-1.0.0/lib/rubylog/theory.rb:35:in `theory'
    from /Users/grych/.rvm/gems/ruby-1.9.3-p385/gems/rubylog-1.0.0/lib/rubylog/mixins/kernel.rb:3:in `theory'
    from rubylog1.rb:3:in `<main>'

I am running ruby 1.9.3p385

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions