Module: Relaton::Util

Defined in:
lib/relaton/util.rb

Class Method Summary collapse

Class Method Details

.log(message, type = :info) ⇒ Object


3
4
5
6
7
8
9
# File 'lib/relaton/util.rb', line 3

def self.log(message, type = :info)
  log_types = Relaton.configuration.logs.map(&:to_s) || []

  if log_types.include?(type.to_s)
    puts(message)
  end
end