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( message, data = {} )
  return unless hint?
  log(message, 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

Returns:

  • (Boolean)


11
12
13
# File 'lib/fpm/fry/channel.rb', line 11

def hint?
  !defined?(@hint) || @hint
end