Method not missing
Implements missing methods on the fly by googling their implementation on rubydoc.info. Because Ruby.
Instance variables are added when needed and missing classes are also declared at runtime.
There's some backtracking if the implementation found raises an error (like stack overflows) or if a nested method lookup fails.
gem install method_not_missing
- PhantomJS (
brew install phantomjson OSX )
require "method_not_missing" object = MethodNotMissing::OmnipotentObject.new object.update() ## Googling... #=>  object.update() #=> [3, 4] object.inspect #=> #<MethodNotMissing::OmnipotentObject:70308021738440 @uncounted=[3, 4]>
Type Safety: since we get the arity of the requested function, we could filter out the ones with the wrong number of argument. This is implemented with exception-driven backtracking on ArgumentErrors right now.
- Fork it ( https://github.com/[my-github-username]/method_not_missing/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request