Module: FPM::Fry::Channel::Hint
- Included in:
- FPM::Fry::Channel
- Defined in:
- lib/fpm/fry/channel.rb
Instance Method Summary collapse
-
#hint(message, data = {}) ⇒ Object
Logs a message with level ‘hint’.
-
#hint=(bool) ⇒ Object
Switched hints on or off.
-
#hint? ⇒ Boolean
True if hints should be displayed.
Instance Method Details
#hint(message, data = {}) ⇒ Object
Logs a message with level ‘hint’
17 18 19 20 |
# File 'lib/fpm/fry/channel.rb', line 17 def hint( , data = {} ) return unless hint? log(, data.merge(level: :hint)) end |
#hint=(bool) ⇒ Object
Switched hints on or off
28 29 30 |
# File 'lib/fpm/fry/channel.rb', line 28 def hint=( bool ) @hint = !!bool end |
#hint? ⇒ Boolean
True if hints should be displayed
23 24 25 |
# File 'lib/fpm/fry/channel.rb', line 23 def hint? !defined?(@hint) || @hint end |