Class: Fylla::ParsedSubcommand

Inherits:
Object
  • Object
show all
Defined in:
lib/fylla/parsed_subcommand.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, description, commands, class_options) ⇒ ParsedSubcommand

Returns a new instance of ParsedSubcommand.



5
6
7
8
9
10
# File 'lib/fylla/parsed_subcommand.rb', line 5

def initialize(name, description, commands, class_options)
  @name = name
  @description = description
  @commands = commands
  @class_options = class_options
end

Instance Attribute Details

#class_optionsObject

Returns the value of attribute class_options.



3
4
5
# File 'lib/fylla/parsed_subcommand.rb', line 3

def class_options
  @class_options
end

#commandsObject

Returns the value of attribute commands.



3
4
5
# File 'lib/fylla/parsed_subcommand.rb', line 3

def commands
  @commands
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/fylla/parsed_subcommand.rb', line 3

def description
  @description
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/fylla/parsed_subcommand.rb', line 3

def name
  @name
end