Sha256: 71431e7d6b1714ad0dd464ca9a5e2a5a285fc7d4bf1bd07b160ecd8fff4469b4

Contents?: true

Size: 244 Bytes

Versions: 24

Compression:

Stored size: 244 Bytes

Contents

class Logger
  def initialize(log_to)
  end

  [:fatal, :info, :warn, :debug, :error].each do |method_name|
    define_method(method_name) do |text, &block|
      text = block.call if block

      `console[method_name](text);`
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
volt-0.8.15 lib/volt/extra_core/logger.rb
volt-0.8.14 lib/volt/extra_core/logger.rb
volt-0.8.13 lib/volt/extra_core/logger.rb
volt-0.8.11 lib/volt/extra_core/logger.rb
volt-0.8.10 lib/volt/extra_core/logger.rb
volt-0.8.9 lib/volt/extra_core/logger.rb
volt-0.8.8 lib/volt/extra_core/logger.rb
volt-0.8.7 lib/volt/extra_core/logger.rb
volt-0.8.6 lib/volt/extra_core/logger.rb
volt-0.8.5 lib/volt/extra_core/logger.rb
volt-0.8.4 lib/volt/extra_core/logger.rb
volt-0.8.3 lib/volt/extra_core/logger.rb
volt-0.8.2 lib/volt/extra_core/logger.rb
volt-0.8.1 lib/volt/extra_core/logger.rb
volt-0.8.0 lib/volt/extra_core/logger.rb
volt-0.7.23 lib/volt/extra_core/logger.rb
volt-0.7.22 lib/volt/extra_core/logger.rb
volt-0.7.21 lib/volt/extra_core/logger.rb
volt-0.7.20 lib/volt/extra_core/logger.rb
volt-0.7.19 lib/volt/extra_core/logger.rb