Module: Expectant

Defined in:
lib/expectant.rb,
lib/expectant/dsl.rb,
lib/expectant/types.rb,
lib/expectant/utils.rb,
lib/expectant/errors.rb,
lib/expectant/schema.rb,
lib/expectant/version.rb,
lib/expectant/expectation.rb,
lib/expectant/bound_schema.rb,
lib/expectant/configuration.rb

Defined Under Namespace

Modules: DSL, Types, Utils Classes: BoundSchema, Configuration, ConfigurationError, Error, Expectation, Schema, SchemaError, ValidationError

Constant Summary collapse

VERSION =
"0.3.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



14
15
16
# File 'lib/expectant.rb', line 14

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

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

Yields:



18
19
20
# File 'lib/expectant.rb', line 18

def configure
  yield(configuration)
end

.reset_configuration!Object



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

def reset_configuration!
  @configuration = Configuration.new
end