Class: Getto::Roda::Config::Struct
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Getto::Roda::Config::Struct
- Defined in:
- lib/getto/roda/config.rb
Instance Method Summary collapse
Instance Method Details
#freeze ⇒ Object
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
16 17 18 19 |
# File 'lib/getto/roda/config.rb', line 16 def group(name) self[name] ||= Struct.new yield self[name] end |