Module: Marvin

Includes:
Perennial
Defined in:
lib/marvin/dsl.rb,
lib/marvin.rb,
lib/marvin/irc.rb,
lib/marvin/base.rb,
lib/marvin/util.rb,
lib/marvin/parsers.rb,
lib/marvin/console.rb,
lib/marvin/exceptions.rb,
lib/marvin/middle_man.rb,
lib/marvin/irc/replies.rb,
lib/marvin/test_client.rb,
lib/marvin/distributed.rb,
lib/marvin/core_commands.rb,
lib/marvin/client/actions.rb,
lib/marvin/parsers/command.rb,
lib/marvin/abstract_client.rb,
lib/marvin/abstract_parser.rb,
lib/marvin/logging_handler.rb,
lib/marvin/command_handler.rb,
lib/marvin/parsers/prefixes.rb,
lib/marvin/exception_tracker.rb,
lib/marvin/distributed/server.rb,
lib/marvin/distributed/client.rb,
lib/marvin/distributed/handler.rb,
lib/marvin/distributed/protocol.rb,
lib/marvin/parsers/ragel_parser.rb,
lib/marvin/parsers/simple_parser.rb,
lib/marvin/parsers/prefixes/server.rb,
lib/marvin/client/default_handlers.rb,
lib/marvin/parsers/prefixes/host_mask.rb

Overview

Handy Dandy DSL style stuff for Marvin

Defined Under Namespace

Modules: Distributed, IRC, Parsers, Util Classes: AbstractClient, AbstractParser, Base, CommandHandler, Console, CoreCommands, DSL, Error, ExceptionTracker, HaltHandlerProcessing, LoggingHandler, MiddleMan, TestClient, UnparseableMessage

Constant Summary

VERSION =
[0, 8, 2, 0]

Class Method Summary collapse

Class Method Details

.handler_parent_classesObject



5
6
7
# File 'lib/marvin/base.rb', line 5

def self.handler_parent_classes
  @@handler_parent_classes ||= Hash.new { |h,k| h[k] = Set.new }
end

.version(include_build = nil) ⇒ Object

Returns a string of the current version, optionally including a build number.



45
46
47
48
# File 'lib/marvin.rb', line 45

def self.version(include_build = nil)
  include_build = VERSION[3].to_i > 0 if include_build.nil?
  VERSION[0, (include_build ? 4 : 3)].join(".")
end