Module: Elo
- Defined in:
- lib/elo.rb,
lib/elo/game.rb,
lib/elo/model.rb,
lib/elo/helper.rb,
lib/elo/player.rb,
lib/elo/rating.rb,
lib/elo/version.rb,
lib/elo/configuration.rb
Overview
See README.rdoc for general information about Elo.
Defined Under Namespace
Modules: Helper, Model Classes: Configuration, Game, Player, Rating
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
-
.config ⇒ Object
Accessor to the configuration object, which, should be instantiated only once (and automatically).
-
.configure {|config| ... } ⇒ Object
Configure Elo in a block style.
Class Method Details
.config ⇒ Object
Accessor to the configuration object, which, should be instantiated only once (and automatically).
13 14 15 |
# File 'lib/elo.rb', line 13 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
23 24 25 |
# File 'lib/elo.rb', line 23 def self.configure(&block) yield(config) end |