Sha256: 9700f7672a1b3f9364081cbcaaa4f93e77832aec988b58daeba36dcdd739bbdf

Contents?: true

Size: 222 Bytes

Versions: 30

Compression:

Stored size: 222 Bytes

Contents

module Devcenter::Logger

  extend self

  def self.active=(bool)
    @@active = bool
  end

  def self.active?
    !!@@active
  end

  def log(str)
    puts "devcenter gem: #{str}" if Devcenter::Logger.active?
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
devcenter-0.0.13 lib/devcenter/logger.rb
devcenter-0.0.12 lib/devcenter/logger.rb
devcenter-0.0.11 lib/devcenter/logger.rb
devcenter-0.0.10 lib/devcenter/logger.rb
devcenter-0.0.9 lib/devcenter/logger.rb
devcenter-0.0.8 lib/devcenter/logger.rb
devcenter-0.0.6 lib/devcenter/logger.rb
devcenter-0.0.5 lib/devcenter/logger.rb
devcenter-0.0.4 lib/devcenter/logger.rb
devcenter-0.0.3 lib/devcenter/logger.rb