Module: Elo

Defined in:
lib/elo.rb,
lib/elo/game.rb,
lib/elo/player.rb,
lib/elo/rating.rb,
lib/elo/helper.rb,
lib/elo/version.rb,
lib/elo/configuration.rb

Overview

See README.rdoc for general information about Elo.

Defined Under Namespace

Modules: Helper Classes: Configuration, Game, Player, Rating

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.configObject

Accessor to the configuration object, which, should be instantiated only once (and automatically).


12
13
14
# File 'lib/elo.rb', line 12

def self.config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Configure Elo in a block style. See Elo::Configuration for more details.

Elo.configure do |config|
  config.attribute = :value
end

Yields:


22
23
24
# File 'lib/elo.rb', line 22

def self.configure(&_block)
  yield(config)
end