Class: Brutal::Configuration
- Inherits:
-
Object
- Object
- Brutal::Configuration
- Defined in:
- lib/brutal/configuration.rb
Overview
Brutal::Configuration
Constant Summary collapse
- HEAD =
'# Brutal test suite'
Instance Attribute Summary collapse
- #actuals ⇒ Object readonly
- #contexts ⇒ Object readonly
- #header ⇒ Object readonly
- #subject ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(actuals: [], contexts: {}, header: HEAD, subject: '') ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(actuals: [], contexts: {}, header: HEAD, subject: '') ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/brutal/configuration.rb', line 12 def initialize(actuals: [], contexts: {}, header: HEAD, subject: '') raise ::TypeError, actuals.inspect unless actuals.is_a?(::Array) raise ::TypeError, contexts.inspect unless contexts.is_a?(::Hash) raise ::TypeError, header.inspect unless header.is_a?(::String) raise ::TypeError, subject.inspect unless subject.is_a?(::String) @actuals = actuals @contexts = contexts @header = header @subject = subject end |
Instance Attribute Details
#actuals ⇒ Object (readonly)
10 11 12 |
# File 'lib/brutal/configuration.rb', line 10 def actuals @actuals end |
#contexts ⇒ Object (readonly)
10 11 12 |
# File 'lib/brutal/configuration.rb', line 10 def contexts @contexts end |
#header ⇒ Object (readonly)
10 11 12 |
# File 'lib/brutal/configuration.rb', line 10 def header @header end |
#subject ⇒ Object (readonly)
10 11 12 |
# File 'lib/brutal/configuration.rb', line 10 def subject @subject end |