Class: Naught::NullClassBuilder::Commands::Impersonate
- Inherits:
-
Mimic
- Object
- Naught::NullClassBuilder::Command
- Mimic
- Naught::NullClassBuilder::Commands::Impersonate
- Defined in:
- lib/naught/null_class_builder/commands/impersonate.rb
Constant Summary
Constants inherited from Mimic
Instance Attribute Summary
Attributes inherited from Mimic
#class_to_mimic, #include_super, #singleton_class
Attributes inherited from Naught::NullClassBuilder::Command
Instance Method Summary collapse
-
#initialize(builder, class_to_impersonate, options = {}) ⇒ Impersonate
constructor
A new instance of Impersonate.
Methods inherited from Mimic
Methods inherited from Naught::NullClassBuilder::Command
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, = {}) super builder.base_class = class_to_impersonate end |