Module: Royal

Defined in:
lib/royal.rb,
lib/royal/error.rb,
lib/royal/config.rb,
lib/royal/points.rb,
lib/royal/locking.rb,
lib/royal/version.rb,
lib/royal/transaction.rb,
lib/royal/point_balance.rb,
lib/royal/sequence_error.rb,
lib/royal/locking/advisory.rb,
lib/royal/locking/optimistic.rb,
lib/royal/locking/pessimistic.rb,
lib/royal/insufficient_points_error.rb,
lib/generators/royal/install_generator.rb,
lib/generators/royal/migration_generator.rb

Defined Under Namespace

Modules: Generators, Locking, Points Classes: Config, InsufficientPointsError, PointBalance, Transaction

Constant Summary collapse

Error =
Class.new(StandardError)
VERSION =
'0.1.0'
SequenceError =
Class.new(Error)

Class Method Summary collapse

Class Method Details

.configRoyal::Config

Returns:



17
18
19
# File 'lib/royal.rb', line 17

def self.config
  @config ||= Royal::Config.new.freeze
end

.configure {|config| ... } ⇒ void

This method returns an undefined value.

Yields:



22
23
24
25
26
27
# File 'lib/royal.rb', line 22

def self.configure
  config = Royal::Config.new
  yield(config)

  @config = config.freeze
end