Class: Lotus::Generators::Abstract Abstract

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/lotus/generators/abstract.rb

Overview

This class is abstract.

Abstract super class for generators

Since:

  • 0.2.0

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ Abstract

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.

Initialize a generator

Parameters:

  • command (Thor)

    a Thor instance that comes from Lotus::Cli

Since:

  • 0.2.0



16
17
18
# File 'lib/lotus/generators/abstract.rb', line 16

def initialize(command)
  super(command)
end

Instance Method Details

#startObject

This method is abstract.

Start the generator

 @raise [NotImplementedError]

Raises:

  • (NotImplementedError)

Since:

  • 0.2.0



26
27
28
# File 'lib/lotus/generators/abstract.rb', line 26

def start
  raise NotImplementedError
end