Module: Sandrbox

Extended by:
Sandrbox
Included in:
Sandrbox
Defined in:
lib/sandrbox/options/option.rb,
lib/sandrbox.rb,
lib/sandrbox/value.rb,
lib/sandrbox/config.rb,
lib/sandrbox/response.rb

Overview

Shamelessly stolen from Mongoid!

Defined Under Namespace

Modules: Config Classes: Response, Value

Instance Method Summary collapse

Instance Method Details

#configureObject Also known as: config



11
12
13
# File 'lib/sandrbox.rb', line 11

def configure
  block_given? ? yield(Sandrbox::Config) : Sandrbox::Config
end

#perform(array) ⇒ Object



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

def perform(array)
  Sandrbox::Response.new(array)
end