Class: Surrogate

Inherits:
Object
  • Object
show all
Defined in:
lib/surrogate.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/method_queue.rb,
lib/surrogate/rspec/api_method_matchers.rb,
lib/surrogate/rspec/substitutability_matchers.rb

Defined Under Namespace

Modules: RSpec Classes: ApiComparer, Endower, Hatchery, Hatchling, MethodQueue, Options

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.endow(klass, &playlist) ⇒ Object

TODO: Find a new name that isn’t “playlist”



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

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