Module: Mongrel2
- Extended by:
- Loggability
- Includes:
- Constants
- Defined in:
- lib/mongrel2.rb,
lib/mongrel2/config.rb,
lib/mongrel2/testing.rb,
lib/mongrel2/exceptions.rb
Overview
–
Defined Under Namespace
Modules: CLI, Constants, SpecHelpers, WebSocket Classes: Config, ConfigError, Connection, ConnectionError, Control, ControlError, Exception, HTTPRequest, HTTPResponse, Handler, JSONRequest, ParseError, Request, RequestFactory, Response, ResponseError, Table, UnhandledMethodError, UploadError, WebSocketRequestFactory, XMLRequest
Constant Summary collapse
- VERSION =
Library version constant
'0.55.0'
- REVISION =
Version-control revision constant
%q$Revision$
Constants included from Constants
Constants::DATA_DIR, Constants::DEFAULT_CONFIG_SCRIPT, Constants::DEFAULT_CONFIG_URI, Constants::DEFAULT_CONTROL_SOCKET, Constants::MAX_BROADCAST_IDENTS
Class Method Summary collapse
-
.Config(source) ⇒ Object
Factory method that creates subclasses of Mongrel2::Config.
-
.version_string(include_buildnum = false) ⇒ Object
Get the library version.
Class Method Details
.Config(source) ⇒ Object
Factory method that creates subclasses of Mongrel2::Config.
267 268 269 |
# File 'lib/mongrel2/config.rb', line 267 def self::Config( source ) return Mongrel2::Config.Model( source ) end |
.version_string(include_buildnum = false) ⇒ Object
Get the library version. If include_buildnum
is true, the version string will include the VCS rev ID.
37 38 39 40 41 |
# File 'lib/mongrel2.rb', line 37 def self::version_string( include_buildnum=false ) vstring = "Ruby-Mongrel2 %s" % [ VERSION ] vstring << " (build %s)" % [ REVISION[/: ([[:xdigit:]]+)/, 1] || '0' ] if include_buildnum return vstring end |