Class: Gravitext::Concurrent::BlockTestFactory

Inherits:
Object
  • Object
show all
Includes:
TestFactory
Defined in:
lib/gravitext-util/concurrent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

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