Module: Blockster

Defined in:
lib/blockster.rb,
lib/blockster/context.rb,
lib/blockster/version.rb,
lib/blockster/wrapper.rb,
lib/blockster/configuration.rb

Defined Under Namespace

Classes: Configuration, Context, Error, Wrapper

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configurationObject



13
14
15
# File 'lib/blockster/configuration.rb', line 13

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



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

def configure
  yield(configuration)
end

.default_classObject



21
22
23
# File 'lib/blockster/configuration.rb', line 21

def default_class
  configuration.default_class
end

.reset_configuration!Object



25
26
27
# File 'lib/blockster/configuration.rb', line 25

def reset_configuration!
  @configuration = Configuration.new
end