Class: Ru::OptionPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/ru/option_printer.rb

Instance Method Summary collapse

Instance Method Details

#exists?(option_key) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/ru/option_printer.rb', line 5

def exists?(option_key)
  options[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(options[option_key], *option_value)
end