Class: Getto::Roda::Config
- Inherits:
-
Object
- Object
- Getto::Roda::Config
- Defined in:
- lib/getto/roda/config.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.configure(schema) {|c| ... } ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/getto/roda/config.rb', line 6 def self.configure(schema) c = Struct.new yield c c.freeze c.tap do Checker.new(schema).validate!(c) end end |