Sha256: 2ea2ec4ad95e8525494634f5e2ac84a34d81ec64bd58ef437d953a118b58f92c
Contents?: true
Size: 283 Bytes
Versions: 1
Compression:
Stored size: 283 Bytes
Contents
require 'ostruct' module A9n class Struct < OpenStruct def keys @table.keys end def fetch(name, default = nil) @table[name.to_sym] || default end def method_missing(name, *args) raise NoSuchConfigurationVariable.new(name) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
a9n-0.2.3 | lib/a9n/struct.rb |