Module: Rudachi::Option
- Extended by:
- Configurable
- Defined in:
- lib/rudachi/config.rb
Class Method Summary collapse
Methods included from Configurable
Class Method Details
.cmds(opts) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/rudachi/config.rb', line 24 def self.cmds(opts) class_variables.each_with_object([]) do |name, flags| key = name.to_s.delete('@@') val = opts[key] || opts[key.to_sym] || class_variable_get(name) or next flags << "-#{key}" << val.to_s end end |