Module: Spectro
- Defined in:
- lib/spectro.rb,
lib/spectro/mock.rb,
lib/spectro/spec.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/http_client.rb,
lib/spectro/spec/parser.rb,
lib/spectro/spec/signature.rb,
lib/spectro/exception/unknown_mock_response.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, HTTPClient, Mock, Spec
Class Method Summary collapse
-
.configure {|Spectro::Config.instance| ... } ⇒ Object
Gives access to the Spectro::Config instance insde the given block.
-
.included(klass) ⇒ Object
Extends the caller with the Spectro class methods on #include.
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
31 32 33 |
# File 'lib/spectro.rb', line 31 def self.configure yield Spectro::Config.instance end |
.included(klass) ⇒ Object
Extends the caller with the Spectro class methods on #include
21 22 23 |
# File 'lib/spectro.rb', line 21 def self.included klass klass.extend(ClassMethods) end |