a helper to check method source_location in irb
Add this line to your application's Gemfile:
gem 'mmmm'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mmmm
Add this line to your .irbrc:
require 'mmmm'
To check specific method source_location:
mmmm Array.new, :extract_options!
To check all method source_location:
mmmm Array.new
if mmmm
is defined for another method, or you want a shorter accessor (for example, m
):
Mmmm.helper :m
The gem is available as open source under the terms of the MIT License.