Class: Gravitext::Concurrent::BlockTestFactory
- Inherits:
-
Object
- Object
- Gravitext::Concurrent::BlockTestFactory
- Includes:
- TestFactory
- Defined in:
- lib/gravitext-util/concurrent.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #create_test_runnable(seed) ⇒ Object
-
#initialize(name = 'BlockTestFactory', &block) ⇒ BlockTestFactory
constructor
A new instance of BlockTestFactory.
Constructor Details
#initialize(name = 'BlockTestFactory', &block) ⇒ BlockTestFactory
Returns a new instance of BlockTestFactory.
69 70 71 72 |
# File 'lib/gravitext-util/concurrent.rb', line 69 def initialize( name = 'BlockTestFactory', &block ) @name = name @block = block end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
67 68 69 |
# File 'lib/gravitext-util/concurrent.rb', line 67 def name @name end |
Instance Method Details
#create_test_runnable(seed) ⇒ Object
74 75 76 |
# File 'lib/gravitext-util/concurrent.rb', line 74 def create_test_runnable( seed ) BlockTestRunnable.new( seed, @block ) end |