Class: DTest::Global::Manager
- Inherits:
-
Object
- Object
- DTest::Global::Manager
- Includes:
- Singleton
- Defined in:
- lib/dtest/global.rb
Overview
class Harness
Instance Attribute Summary collapse
-
#harness ⇒ Object
Returns the value of attribute harness.
Instance Method Summary collapse
- #after(option = {}, &block) ⇒ Object
- #before(option = {}, &block) ⇒ Object
- #clear ⇒ Object
-
#initialize ⇒ Manager
constructor
A new instance of Manager.
Methods included from Singleton
Constructor Details
#initialize ⇒ Manager
Returns a new instance of Manager.
69 70 71 |
# File 'lib/dtest/global.rb', line 69 def initialize clear end |
Instance Attribute Details
#harness ⇒ Object
Returns the value of attribute harness.
67 68 69 |
# File 'lib/dtest/global.rb', line 67 def harness @harness end |
Instance Method Details
#after(option = {}, &block) ⇒ Object
84 85 86 87 88 |
# File 'lib/dtest/global.rb', line 84 def after(option = {}, &block) b = Block.new("after", option, &block) b.parent = 'Global' @harness.after << b end |