Class: Surrogate

Inherits:
Object
  • Object
show all
Defined in:
lib/surrogate/values.rb,
lib/surrogate.rb,
lib/surrogate/values.rb,
lib/surrogate/endower.rb,
lib/surrogate/options.rb,
lib/surrogate/version.rb,
lib/surrogate/hatchery.rb,
lib/surrogate/hatchling.rb,
lib/surrogate/api_comparer.rb,
lib/surrogate/rspec/api_method_matchers.rb,
lib/surrogate/rspec/substitutability_matchers.rb

Overview

the current set of possible values

Defined Under Namespace

Modules: ClassMethods, RSpec Classes: ApiComparer, Endower, Hatchery, Hatchling, Options, Value

Constant Summary collapse

UnpreparedMethodError =
Class.new StandardError
VERSION =
"0.3.1"
UnknownMethod =
Class.new StandardError

Class Method Summary collapse

Class Method Details

.endow(klass, &block) ⇒ Object



12
13
14
15
# File 'lib/surrogate.rb', line 12

def self.endow(klass, &block)
  Endower.endow klass, &block
  klass
end