Class: Naught::NullClassBuilder::Commands::Impersonate

Inherits:
Mimic show all
Defined in:
lib/naught/null_class_builder/commands/impersonate.rb

Constant Summary

Constants inherited from Mimic

Mimic::NULL_SINGLETON_CLASS

Instance Attribute Summary

Attributes inherited from Mimic

#class_to_mimic, #include_super, #singleton_class

Attributes inherited from Naught::NullClassBuilder::Command

#builder

Instance Method Summary collapse

Methods inherited from Mimic

#call

Methods inherited from Naught::NullClassBuilder::Command

#call, #defer

Constructor Details

#initialize(builder, class_to_impersonate, options = {}) ⇒ Impersonate

Returns a new instance of Impersonate.



5
6
7
8
# File 'lib/naught/null_class_builder/commands/impersonate.rb', line 5

def initialize(builder, class_to_impersonate, options = {})
  super
  builder.base_class = class_to_impersonate
end