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-1.3.0 lib/devcenter/logger.rb
devcenter-1.2.0 lib/devcenter/logger.rb
devcenter-1.1.9 lib/devcenter/logger.rb
devcenter-1.1.8 lib/devcenter/logger.rb
devcenter-1.1.6 lib/devcenter/logger.rb
devcenter-1.1.5 lib/devcenter/logger.rb
devcenter-1.1.4 lib/devcenter/logger.rb
devcenter-1.1.3 lib/devcenter/logger.rb
devcenter-1.1.2 lib/devcenter/logger.rb
devcenter-1.1.1 lib/devcenter/logger.rb
devcenter-1.1.0 lib/devcenter/logger.rb
devcenter-1.1.0rc2 lib/devcenter/logger.rb
devcenter-1.1.0rc1 lib/devcenter/logger.rb
devcenter-1.0.7 lib/devcenter/logger.rb
devcenter-1.0.6 lib/devcenter/logger.rb
devcenter-1.0.4 lib/devcenter/logger.rb
devcenter-1.0.3 lib/devcenter/logger.rb
devcenter-1.0.1 lib/devcenter/logger.rb
devcenter-1.0.0 lib/devcenter/logger.rb
devcenter-0.0.14 lib/devcenter/logger.rb