Class: RR::Creator
- Inherits:
-
Object
- Object
- RR::Creator
- Defined in:
- lib/rr/creator.rb
Overview
RR::Creator is the superclass for all creators.
Direct Known Subclasses
DoNotAllowCreator, MockCreator, MockProbeCreator, StubCreator, StubProbeCreator
Instance Method Summary collapse
-
#initialize(space, subject) {|_self| ... } ⇒ Creator
constructor
A new instance of Creator.
Constructor Details
#initialize(space, subject) {|_self| ... } ⇒ Creator
Returns a new instance of Creator.
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/rr/creator.rb', line 4 def initialize(space, subject) @space = space @subject = subject class << self instance_methods.each do |m| undef_method m unless m =~ /^__/ end include self::InstanceMethods end yield(self) if block_given? end |