Class: UniversaTools::Commons::CliCommands::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/universa_tools/commons.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, second_name, description, dispatcher) ⇒ Command

Returns a new instance of Command.



77
78
79
# File 'lib/universa_tools/commons.rb', line 77

def initialize(name, second_name, description, dispatcher)
  @name, @second_name, @description, @dispatcher = name, second_name, description, dispatcher
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



75
76
77
# File 'lib/universa_tools/commons.rb', line 75

def description
  @description
end

#dispatcherObject (readonly)

Returns the value of attribute dispatcher.



75
76
77
# File 'lib/universa_tools/commons.rb', line 75

def dispatcher
  @dispatcher
end

#nameObject (readonly)

Returns the value of attribute name.



75
76
77
# File 'lib/universa_tools/commons.rb', line 75

def name
  @name
end

#second_nameObject (readonly)

Returns the value of attribute second_name.



75
76
77
# File 'lib/universa_tools/commons.rb', line 75

def second_name
  @second_name
end