Class: Kafo::AppOption::Definition

Inherits:
Clamp::Option::Definition
  • Object
show all
Defined in:
lib/kafo/app_option/definition.rb

Instance Method Summary collapse

Constructor Details

#initialize(switches, type, description, options = {}) ⇒ Definition

Returns a new instance of Definition.



4
5
6
7
# File 'lib/kafo/app_option/definition.rb', line 4

def initialize(switches, type, description, options = {})
  @advanced = options.fetch(:advanced, false)
  super(switches, type, description, options)
end

Instance Method Details

#advanced?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/kafo/app_option/definition.rb', line 9

def advanced?
  @advanced
end