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

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

Instance Attribute Summary

Attributes inherited from Mimic

#class_to_mimic, #include_super

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.



3
4
5
6
# File 'lib/naught/null_class_builder/commands/impersonate.rb', line 3

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