Class: Sourcerer::ProcSourceBody
- Inherits:
-
SourceCode
- Object
- String
- SourceCode
- Sourcerer::ProcSourceBody
- Defined in:
- lib/sourcerer/proc_source_body.rb
Instance Method Summary collapse
- #+(oth_str) ⇒ Object
-
#build(*params) ⇒ Object
build proc source.
Methods inherited from SourceCode
#convert_from_method!, #convert_from_proc!, #frequency, #source_formater_for_line_sub
Instance Method Details
#+(oth_str) ⇒ Object
4 5 6 |
# File 'lib/sourcerer/proc_source_body.rb', line 4 def +(oth_str) ProcSourceBody.new(self.dup.concat("\n").concat(oth_str.to_s)) end |
#build(*params) ⇒ Object
build proc source
9 10 11 |
# File 'lib/sourcerer/proc_source_body.rb', line 9 def build(*params) ProcSource.build(self.to_s,*params) end |