Sha256: cc7cc7f0ab04e8d594a474e4ec0a380d412037539928f2c1236ede975f729f79

Contents?: true

Size: 258 Bytes

Versions: 2

Compression:

Stored size: 258 Bytes

Contents

module Sourcerer
  class ProcSourceBody < SourceCode

    def +(oth_str)
      ProcSourceBody.new(self.dup.concat("\n").concat(oth_str.to_s))
    end

    # build proc source
    def build(*params)
      ProcSource.build(self.to_s,*params)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sourcerer-0.5.2 lib/sourcerer/proc_source_body.rb
sourcerer-0.5.1 lib/sourcerer/proc_source_body.rb