Class: Surrogate

Inherits:
Object
  • Object
show all
Defined in:
lib/surrogate.rb,
lib/surrogate/rspec.rb,
lib/surrogate/values.rb,
lib/surrogate/endower.rb,
lib/surrogate/version.rb,
lib/surrogate/hatchery.rb,
lib/surrogate/hatchling.rb,
lib/surrogate/invocation.rb,
lib/surrogate/api_comparer.rb,
lib/surrogate/porc_reflector.rb,
lib/surrogate/method_definition.rb,
lib/surrogate/rspec/with_filter.rb,
lib/surrogate/argument_errorizer.rb,
lib/surrogate/rspec/noun_matcher.rb,
lib/surrogate/rspec/verb_matcher.rb,
lib/surrogate/rspec/block_asserter.rb,
lib/surrogate/rspec/times_predicate.rb,
lib/surrogate/rspec/predicate_matcher.rb,
lib/surrogate/rspec/invocation_matcher.rb,
lib/surrogate/surrogate_class_reflector.rb,
lib/surrogate/rspec/substitution_matcher.rb,
lib/surrogate/rspec/initialization_matcher.rb,
lib/surrogate/surrogate_instance_reflector.rb,
lib/surrogate/rspec/abstract_failure_message.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, RSpec Classes: ApiComparer, ArgumentErrorizer, Endower, Hatchery, Hatchling, Invocation, MethodDefinition, PorcReflector, SurrogateClassReflector, SurrogateInstanceReflector, Value

Constant Summary collapse

VERSION =
"0.8.1"
SurrogateError =
Class.new StandardError
UnknownMethod =
Class.new SurrogateError

Class Method Summary collapse

Class Method Details

.endow(klass, options = {}, &block) ⇒ Object



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

def self.endow(klass, options={},  &block)
  Endower.endow klass, options, &block
  klass
end