Class: Fix::Set Private
- Inherits:
-
Object
- Object
- Fix::Set
- Defined in:
- lib/fix/set.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Collection of specifications.
Instance Attribute Summary collapse
-
#specs ⇒ Array
readonly
private
A list of specifications.
Class Method Summary collapse
-
.load(name) ⇒ Set
Load specifications from a constant name.
Instance Method Summary collapse
-
#initialize(*contexts) ⇒ Set
constructor
private
Initialize a new Set with given contexts.
-
#test { ... } ⇒ Boolean
Run the test suite against the provided subject.
Constructor Details
#initialize(*contexts) ⇒ Set
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize a new Set with given contexts.
29 30 31 |
# File 'lib/fix/set.rb', line 29 def initialize(*contexts) @specs = Doc.extract_specifications(*contexts).shuffle end |
Instance Attribute Details
#specs ⇒ Array (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns A list of specifications.
14 15 16 |
# File 'lib/fix/set.rb', line 14 def specs @specs end |
Class Method Details
Instance Method Details
#test { ... } ⇒ Boolean
Run the test suite against the provided subject.
41 42 43 |
# File 'lib/fix/set.rb', line 41 def test(&) suite_passed?(&) || ::Kernel.exit(false) end |