Module: Spectro

Defined in:
lib/spectro.rb,
lib/spectro/spec.rb,
lib/spectro/mock.rb,
lib/spectro/client.rb,
lib/spectro/config.rb,
lib/spectro/compiler.rb,
lib/spectro/database.rb,
lib/spectro/exception.rb,
lib/spectro/spec/rule.rb,
lib/spectro/spec/parser.rb,
lib/spectro/spec/signature.rb,
lib/spectro/exception/undefined_method_definition.rb

Overview

Specs driven social meta-programming

Defined Under Namespace

Modules: ClassMethods, Exception Classes: Client, Compiler, Config, Database, Mock, Spec

Class Method Summary collapse

Class Method Details

.configure {|Spectro::Config.instance| ... } ⇒ Object

Gives access to the Spectro::Config instance insde the given block

Usage:

Spectro.configure do |config|
  config.enable_mocks!
end

Yields:



26
27
28
# File 'lib/spectro.rb', line 26

def self.configure 
  yield Spectro::Config.instance
end

.included(klass) ⇒ Object

Extends the caller with the Spectro class methods on #include



16
17
18
# File 'lib/spectro.rb', line 16

def self.included klass
  klass.extend(ClassMethods)
end