class Getto::Roda::Config

Public Class Methods

configure(schema) { |c| ... } click to toggle source
# 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