Class: Trenza::Parallel

Inherits:
Object
  • Object
show all
Includes:
BlankSlate
Defined in:
lib/trenza/parallel.rb

Defined Under Namespace

Classes: MethodCall

Instance Method Summary collapse

Methods included from BlankSlate

included

Constructor Details

#initialize(object) ⇒ Parallel

Returns a new instance of Parallel.



5
6
7
# File 'lib/trenza/parallel.rb', line 5

def initialize(object)
  @object = object
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &blk) ⇒ Object



9
10
11
12
13
# File 'lib/trenza/parallel.rb', line 9

def method_missing(meth, *args, &blk)
  MethodCall.new do
    @object.send meth, *args, &blk
  end
end