Undefined method 'Entity' for main object
Closed this issue · 2 comments
Harrisonl commented
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
Happened to me also with MRI Ruby 2.3, reality 0.0.3
zverok commented
Sorry, it should be include Reality::Methods
(which is a bit obscure, faithfully).
Fixed this in README for now, will think of it.