Parent

Methods

Scrubyt::Logger::Message

Public Class Methods

new(level, text) click to toggle source
# File lib/scrubyt/logging.rb, line 26
def initialize(level, text)
  @level, @text = level.to_s, text.to_s
end

Public Instance Methods

to_s() click to toggle source
# File lib/scrubyt/logging.rb, line 30
def to_s
  prefix + @text
end

Protected Instance Methods

prefix() click to toggle source
# File lib/scrubyt/logging.rb, line 36
def prefix
  @prefix ||= "[#{@level}] "
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.