molybdenum-99 / reality

Comprehensive data proxy to knowledge about real world
MIT License
817 stars 43 forks source link

Undefined method 'Entity' for main object #36

Closed Harrisonl closed 8 years ago

Harrisonl commented 8 years ago

Trying to have a play around with the gem but keep running into this error. Currently:

$ require 'reality'
$ include Reality

$ Entity
$ # => Reality::Entity

$ Entity('Australia')
$ # => Undefined method 'Entity' for main:Object

$ Reality::Entity('Australia')
$ # => #<Reality::Entity(Australia):country>
apantsiop commented 8 years ago

Happened to me also with MRI Ruby 2.3, reality 0.0.3

zverok commented 8 years ago

Sorry, it should be include Reality::Methods (which is a bit obscure, faithfully). Fixed this in README for now, will think of it.