Class: BareTest::Setup
- Inherits:
-
Struct
- Object
- Struct
- BareTest::Setup
- Defined in:
- lib/baretest/setup.rb
Overview
Encapsulates a single setup block and associated information. Relevant for setup variants.
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#component ⇒ Object
Returns the value of attribute component.
-
#substitute ⇒ Object
Returns the value of attribute substitute.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
12 13 14 |
# File 'lib/baretest/setup.rb', line 12 def block @block end |
#component ⇒ Object
Returns the value of attribute component
12 13 14 |
# File 'lib/baretest/setup.rb', line 12 def component @component end |
#substitute ⇒ Object
Returns the value of attribute substitute
12 13 14 |
# File 'lib/baretest/setup.rb', line 12 def substitute @substitute end |
#value ⇒ Object
Returns the value of attribute value
12 13 14 |
# File 'lib/baretest/setup.rb', line 12 def value @value end |
Instance Method Details
#inspect ⇒ Object
13 14 15 |
# File 'lib/baretest/setup.rb', line 13 def inspect sprintf "#<Setup component=%s substitute=%p value=%p>", component, substitute, value end |