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
5 6 7 |
# File 'lib/ru/option_printer.rb', line 5 def exists?(option_key) [option_key].present? end |
#run(option_key, option_value = nil) ⇒ Object
9 10 11 |
# File 'lib/ru/option_printer.rb', line 9 def run(option_key, option_value=nil) send([option_key], *option_value) end |