Class: Simmer::Judge
- Inherits:
-
Object
- Object
- Simmer::Judge
- Defined in:
- lib/simmer/judge.rb,
lib/simmer/judge/result.rb
Overview
Runs all assertions and reports back the results.
Defined Under Namespace
Classes: Result
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
Instance Method Summary collapse
- #assert(specification, output) ⇒ Object
-
#initialize(database) ⇒ Judge
constructor
A new instance of Judge.
Constructor Details
#initialize(database) ⇒ Judge
Returns a new instance of Judge.
18 19 20 21 22 23 24 |
# File 'lib/simmer/judge.rb', line 18 def initialize(database) raise ArgumentError, 'database is required' unless database @database = database freeze end |
Instance Attribute Details
#database ⇒ Object (readonly)
Returns the value of attribute database.
16 17 18 |
# File 'lib/simmer/judge.rb', line 16 def database @database end |