Module: Hanami::CLI::Command::ClassMethods Private

Defined in:
lib/hanami/cli/command.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#argumentsObject (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.

Since:

  • 0.1.0


44
45
46
# File 'lib/hanami/cli/command.rb', line 44

def arguments
  @arguments
end

#descriptionObject (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.

Since:

  • 0.1.0


36
37
38
# File 'lib/hanami/cli/command.rb', line 36

def description
  @description
end

#examplesObject (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.

Since:

  • 0.1.0


40
41
42
# File 'lib/hanami/cli/command.rb', line 40

def examples
  @examples
end

#optionsObject (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.

Since:

  • 0.1.0


48
49
50
# File 'lib/hanami/cli/command.rb', line 48

def options
  @options
end

Class Method Details

.extended(base) ⇒ Object

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.

Since:

  • 0.1.0


23
24
25
26
27
28
29
30
31
32
# File 'lib/hanami/cli/command.rb', line 23

def self.extended(base)
  super

  base.class_eval do
    @description  = nil
    @examples     = Concurrent::Array.new
    @arguments    = Concurrent::Array.new
    @options      = Concurrent::Array.new
  end
end