Class: Naught::NullClassBuilder::Command Private
- Inherits:
-
Object
- Object
- Naught::NullClassBuilder::Command
- Defined in:
- lib/naught/null_class_builder/command.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Base class for builder command implementations
Direct Known Subclasses
Naught::NullClassBuilder::Commands::Callstack, Naught::NullClassBuilder::Commands::DefineExplicitConversions, Naught::NullClassBuilder::Commands::DefineImplicitConversions, Naught::NullClassBuilder::Commands::Mimic, Naught::NullClassBuilder::Commands::NullSafeProxy, Naught::NullClassBuilder::Commands::Pebble, Naught::NullClassBuilder::Commands::PredicatesReturn, Naught::NullClassBuilder::Commands::Singleton, Naught::NullClassBuilder::Commands::Traceable
Instance Attribute Summary collapse
-
#builder ⇒ NullClassBuilder
readonly
private
Builder instance for this command.
Instance Method Summary collapse
-
#call ⇒ void
private
Execute the command.
-
#initialize(builder) ⇒ void
constructor
private
Create a command bound to a builder.
Constructor Details
#initialize(builder) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create a command bound to a builder
17 18 19 |
# File 'lib/naught/null_class_builder/command.rb', line 17 def initialize(builder) @builder = builder end |
Instance Attribute Details
#builder ⇒ NullClassBuilder (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Builder instance for this command
10 11 12 |
# File 'lib/naught/null_class_builder/command.rb', line 10 def builder @builder end |
Instance Method Details
#call ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Execute the command
26 27 28 |
# File 'lib/naught/null_class_builder/command.rb', line 26 def call raise NotImplementedError, "Method #call should be overridden in child classes" end |