Sha256: 00e0688e68dd577ecfe29a5b4c4587007caffb6360122c960bc1baa36a27cfcd
Contents?: true
Size: 352 Bytes
Versions: 30
Compression:
Stored size: 352 Bytes
Contents
require 'ostruct' module GLI # Subclass of OpenStruct that provides hash-like methods for #[] and #[]=. Note that is is *not* a Hash. class Options < OpenStruct # Return the value of an attribute def[](k) @table[k.to_sym] end # Set the value of an attribute def[]=(k, v) @table[k.to_sym] = v end end end
Version data entries
30 entries across 30 versions & 4 rubygems