Module: CLIConfig::ClassMethods
- Defined in:
- lib/cli_config.rb
Instance Method Summary collapse
Instance Method Details
#load(file) ⇒ Object
17 18 19 |
# File 'lib/cli_config.rb', line 17 def load(file) new(YAML.load_file(file)) end |
#option(name, type, options = {}) ⇒ Object
21 22 23 |
# File 'lib/cli_config.rb', line 21 def option(name, type, = {}) attribute(name, Option[type], { strict: true }.merge()) end |