Module: Sourcify::Proc::Methods::ToRawSource
- Defined in:
- lib/sourcify/proc/methods/to_raw_source.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/sourcify/proc/methods/to_raw_source.rb', line 5 def self.included(base) base.class_eval do Sourcify.require_rb('proc', 'parser') def to_raw_source(opts = {}, &body_matcher) (@sourcified_parser ||= Parser.new(self)). raw_source(opts.merge(:body_matcher => body_matcher)) end end end |