Inversion

The Inversion templating system. This module provides the namespace for all the other classes and modules, and contains the logging subsystem. A good place to start for documentation would be to check out the examples in the README, and then Inversion::Template for a list of tags, configuration options, etc.

Authors

Constants

LOG_LEVELS

Log levels

LOG_LEVEL_NAMES

Log levels keyed by level

REVISION

Version-control revision constant

VERSION

Library version constant

Attributes

default_log_formatter[RW]

the log formatter that will be used when the logging subsystem is reset

default_logger[RW]

the logger that will be used when the logging subsystem is reset

log[RW]

the logger that's currently in effect

log=[RW]

the logger that's currently in effect

logger[RW]

the logger that's currently in effect

Public Class Methods

reset_logger() click to toggle source

Reset the global logger object to the default

# File lib/inversion.rb, line 74
def self::reset_logger
        self.logger = self.default_logger
        self.logger.level = Logger::WARN
        self.logger.formatter = self.default_log_formatter
end
using_default_logger?() click to toggle source

Returns true if the global logger has not been set to something other than the default one.

# File lib/inversion.rb, line 83
def self::using_default_logger?
        return self.logger == self.default_logger
end
version_string( include_buildnum=false ) click to toggle source

Get the Inversion version.

# File lib/inversion.rb, line 89
def self::version_string( include_buildnum=false )
        vstring = "%s %s" % [ self.name, VERSION ]
        vstring << " (build %s)" % [ REVISION[/: ([[:xdigit:]]+)/, 1] || '0' ] if include_buildnum
        return vstring
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.