{"action":"opened","issue":{"url":"https://api.github.com/repos/ruby-rdf/rdf/issues/314","repository_url":"https://api.github.com/repos/ruby-rdf/rdf","labels_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/314/comments","events_url":"https://api.github.com/repos/ruby-rdf/rdf/issues/314/events","html_url":"https://github.com/ruby-rdf/rdf/issues/314","id":171289556,"number":314,"title":"Override to_enum and enum_for on RDF module?","user":{"login":"cdchapman","id":1197964,"avatar_url":"https://avatars.githubusercontent.com/u/1197964?v=3","gravatar_id":"","url":"https://api.github.com/users/cdchapman","html_url":"https://github.com/cdchapman","followers_url":"https://api.github.com/users/cdchapman/followers","following_url":"https://api.github.com/users/cdchapman/following{/other_user}","gists_url":"https://api.github.com/users/cdchapman/gists{/gist_id}","starred_url":"https://api.github.com/users/cdchapman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdchapman/subscriptions","organizations_url":"https://api.github.com/users/cdchapman/orgs","repos_url":"https://api.github.com/users/cdchapman/repos","events_url":"https://api.github.com/users/cdchapman/events{/privacy}","received_events_url":"https://api.github.com/users/cdchapman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-15T23:57:00Z","updated_at":"2016-08-15T23:57:00Z","closed_at":null,"body":"Currently when finding the RDF vocabulary a plain enumerator is returned from the `to_enum`/`enum_for` instead of an `RDF::Enumerable::Enumerator`:\r\n\r\n```ruby\r\npry> RDF::Vocabulary.find(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\").to_enum\r\n=> #<Enumerator: ...> #instead of <RDF::Enumerable::Enumerator: ...>\r\n```\r\nMight it make sense to override the root `to_enum` and `enum_for` in the `RDF` module and delegate to `RDF::RDFV`? The `method_missing` (in commit 16b995d93984dda6522076542fef7e98ac80f878) approach isn't delegating since these methods are not really missing :wink:."}}
{"actor":{"display_login":"cdchapman"}}