Method: Hieracles::Config#pick_first
- Defined in:
- lib/hieracles/config.rb
#pick_first(label, default) ⇒ Object
38 39 40 |
# File 'lib/hieracles/config.rb', line 38 def pick_first(label, default) @options[label] || @values[label.to_s] || default end |