Class: Lemans::Bench::Section
- Inherits:
-
Object
- Object
- Lemans::Bench::Section
- Defined in:
- lib/lemans/bench.rb
Overview
One section of bench.yml. This base class carries validation logic
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(config, name) ⇒ Section
constructor
A new instance of Section.
- #validate! ⇒ Object
Constructor Details
#initialize(config, name) ⇒ Section
Returns a new instance of Section.
57 58 59 60 |
# File 'lib/lemans/bench.rb', line 57 def initialize(config, name) @config = config || {} @name = name end |
Instance Method Details
#validate! ⇒ Object
62 63 64 65 |
# File 'lib/lemans/bench.rb', line 62 def validate! self.class::VALIDATED.each { public_send(_1) } freeze end |