module Spectro

Specs driven social meta-programming

Public Class Methods

configure() { |instance| ... } click to toggle source

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

Usage:

Spectro.configure do |config|
  config.enable_mocks!
end
# File lib/spectro.rb, line 31
def self.configure
  yield Spectro::Config.instance
end
included(klass) click to toggle source

Extends the caller with the Spectro class methods on include

# File lib/spectro.rb, line 21
def self.included klass
  klass.extend(ClassMethods)
end