Class: Naught::NullClassBuilder::Command Private

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:



17
18
19
# File 'lib/naught/null_class_builder/command.rb', line 17

def initialize(builder)
  @builder = builder
end

Instance Attribute Details

#builderNullClassBuilder (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

Returns:



10
11
12
# File 'lib/naught/null_class_builder/command.rb', line 10

def builder
  @builder
end

Instance Method Details

#callvoid

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

Raises:

  • (NotImplementedError)

    when not overridden



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