Class: Spex::Execution
- Inherits:
-
Object
- Object
- Spex::Execution
- Includes:
- Enumerable
- Defined in:
- lib/spex/execution.rb
Defined Under Namespace
Classes: Builder
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
- #<<(check) ⇒ Object
- #checks ⇒ Object
- #each(&block) ⇒ Object
-
#initialize(command, &block) ⇒ Execution
constructor
A new instance of Execution.
Constructor Details
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
5 6 7 |
# File 'lib/spex/execution.rb', line 5 def command @command end |
Instance Method Details
#<<(check) ⇒ Object
16 17 18 |
# File 'lib/spex/execution.rb', line 16 def <<(check) checks << check end |
#checks ⇒ Object
12 13 14 |
# File 'lib/spex/execution.rb', line 12 def checks @checks ||= [] end |
#each(&block) ⇒ Object
20 21 22 |
# File 'lib/spex/execution.rb', line 20 def each(&block) checks.each(&block) end |