Class: Getto::Roda::Config::Struct

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/getto/roda/config.rb

Instance Method Summary collapse

Instance Method Details

#freezeObject



21
22
23
24
25
26
# File 'lib/getto/roda/config.rb', line 21

def freeze
  each_pair.each do |_,value|
    value.freeze
  end
  super
end

#group(name) {|| ... } ⇒ Object

Yields:

  • ()


16
17
18
19
# File 'lib/getto/roda/config.rb', line 16

def group(name)
  self[name] ||= Struct.new
  yield self[name]
end