Class: Trenza::Parallel
- Inherits:
-
Object
- Object
- Trenza::Parallel
- Includes:
- BlankSlate
- Defined in:
- lib/trenza/parallel.rb
Defined Under Namespace
Classes: MethodCall
Instance Method Summary collapse
-
#initialize(object) ⇒ Parallel
constructor
A new instance of Parallel.
- #method_missing(meth, *args, &blk) ⇒ Object
Methods included from BlankSlate
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 |