Module: Fylla::Thor::Option

Defined in:
lib/fylla/completion_extension.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#completionObject

Returns the value of attribute completion.



10
11
12
# File 'lib/fylla/completion_extension.rb', line 10

def completion
  @completion
end

#filterObject

Returns the value of attribute filter.



10
11
12
# File 'lib/fylla/completion_extension.rb', line 10

def filter
  @filter
end

Instance Method Details

#initialize(name, options = {}) ⇒ Object



12
13
14
15
16
17
# File 'lib/fylla/completion_extension.rb', line 12

def initialize(name, options = {})
  @completion = options[:fylla]&.[](:completion)
  @filter = options[:fylla]&.[](:filter)
  @filter = true if @filter.nil?
  super
end