Module: Sourcerer::MethodDSL
- Included in:
- Method, UnboundMethod
- Defined in:
- lib/sourcerer/method.rb
Instance Method Summary collapse
-
#source ⇒ Object
(also: #source_string)
creatue a raw eval-able process source, so you can set the right bindings using the .to_proc call from String methods.
Instance Method Details
#source ⇒ Object Also known as: source_string
creatue a raw eval-able process source, so you can set the right bindings using the .to_proc call from String methods
6 7 8 9 10 11 |
# File 'lib/sourcerer/method.rb', line 6 def source return_string= Sourcerer.raw_source(self).convert_from_method! return return_string end |