Registry / utility / method-source

method-source

JSON →
library1.1.0rbrubygemsunverified

Retrieve the source code of a Ruby method at runtime.

gem install method_source
INSTALL
IMPORT
SIG · METHOD-SOURCE
M
method-source
utilityrubyv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MethodSource
require 'method_source'

Get the source code of a method.

require 'method_source' def hello puts "Hello, world!" end method(:hello).source # => "def hello\n puts \"Hello, world!\"\nend"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
method-source — gem install method-source · libregistry