Class: RubyDep::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_dep/logger.rb

Overview

TODO: not used, but kept for the sake of SemVer TODO: remove in next major version

Instance Method Summary collapse

Constructor Details

#initialize(device, prefix) ⇒ Logger

Returns a new instance of Logger.



34
35
36
37
38
# File 'lib/ruby_dep/logger.rb', line 34

def initialize(device, prefix)
  @device = device
  @prefix = prefix
  ::RubyDep.logger.warn("The RubyDep::Logger class is deprecated")
end

Instance Method Details

#notice(msg) ⇒ Object



44
45
46
# File 'lib/ruby_dep/logger.rb', line 44

def notice(msg)
  @device.puts @prefix + msg
end

#warning(msg) ⇒ Object



40
41
42
# File 'lib/ruby_dep/logger.rb', line 40

def warning(msg)
  @device.puts @prefix + msg
end