Class: Ru::OptionPrinter
- Inherits:
-
Object
- Object
- Ru::OptionPrinter
- Defined in:
- lib/ru/option_printer.rb
Instance Method Summary collapse
Instance Method Details
#exists?(option_key) ⇒ Boolean
6 7 8 |
# File 'lib/ru/option_printer.rb', line 6 def exists?(option_key) ! ([option_key].nil? || [option_key].empty?) end |
#run(option_key, option_value = nil) ⇒ Object
10 11 12 |
# File 'lib/ru/option_printer.rb', line 10 def run(option_key, option_value=nil) send([option_key], *option_value) end |