Module: FPM::Fry::Channel::Hint
- Included in:
- FPM::Fry::Channel
- Defined in:
- lib/fpm/fry/channel.rb
Instance Method Summary collapse
Instance Method Details
#hint(message, data = {}) ⇒ Object
6 7 8 9 |
# File 'lib/fpm/fry/channel.rb', line 6 def hint( , data = {} ) return unless hint? log(, data.merge(level: :hint)) end |
#hint=(bool) ⇒ Object
15 16 17 |
# File 'lib/fpm/fry/channel.rb', line 15 def hint=( bool ) @hint = !!bool end |
#hint? ⇒ Boolean
11 12 13 |
# File 'lib/fpm/fry/channel.rb', line 11 def hint? !defined?(@hint) || @hint end |