Class: Machinery::Ui::Hint
Class Method Summary collapse
- .print(method, options = {}) ⇒ Object
- .program_name ⇒ Object
- .to_string(method, options = {}) ⇒ Object
Class Method Details
.print(method, options = {}) ⇒ Object
22 23 24 25 26 |
# File 'lib/hint.rb', line 22 def print(method, = {}) return unless Machinery::Config.new.hints Machinery::Ui.puts to_string(method, ) end |
.program_name ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/hint.rb', line 34 def program_name if which_machinery == $PROGRAM_NAME "machinery" else $PROGRAM_NAME end end |