Class: Cmdline::Command

Inherits:
Struct
  • Object
show all
Defined in:
lib/cmdline.rb,
lib/cmdline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCommand

Returns a new instance of Command.



73
74
75
76
77
# File 'lib/cmdline.rb', line 73

def initialize(*)
  super
  self.name ||= ""
  self.description ||= ""
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



66
67
68
# File 'lib/cmdline.rb', line 66

def description
  @description
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



66
67
68
# File 'lib/cmdline.rb', line 66

def name
  @name
end