module FPM::Fry::Channel::Hint

Public Instance Methods

hint( message, data = {} ) click to toggle source

Logs a message with level ‘hint’

@param [String] message @param [Hash] data

# File lib/fpm/fry/channel.rb, line 17
def hint( message, data = {} )
  return unless hint?
  log(message, data.merge(level: :hint))
end
hint=( bool ) click to toggle source

Switched hints on or off

# File lib/fpm/fry/channel.rb, line 28
def hint=( bool )
  @hint = !!bool
end
hint?() click to toggle source

True if hints should be displayed

# File lib/fpm/fry/channel.rb, line 23
def hint?
  !defined?(@hint) || @hint
end