Skip to content

Instantly share code, notes, and snippets.

@drusepth
Created May 29, 2017 20:45
Show Gist options
  • Save drusepth/d6e381223cfe8ca18a006db47bc5343c to your computer and use it in GitHub Desktop.
Save drusepth/d6e381223cfe8ca18a006db47bc5343c to your computer and use it in GitHub Desktop.
[1] pry(main)> wob.fib(7)
[INFO] Looking up new method for method fib taking arguments [7].
[DEBUG] Checking found source code for viability.
[DEBUG] Code doesn't throw an exception!
[INFO] Saving wob_modules/fib.rb cache for future invocations.
[INFO] Defining fib in the global scope with 1 arguments passed.
[DEBUG] Executing method fib...
=> 13
[2] pry(main)> wob.fib(7)
=> 13
[3] pry(main)> fib(7)
=> 13
[4] pry(main)> fib(8)
=> 21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment