Module: Kommando::CommandPlugins::Base::ClassMethods

Defined in:
lib/kommando/command_plugins/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/kommando/command_plugins/base.rb', line 8

def options
  @options
end

Instance Method Details

#inherited(subclass) ⇒ Object



10
11
12
13
# File 'lib/kommando/command_plugins/base.rb', line 10

def inherited(subclass)
  super
  subclass.instance_variable_set(:@options, options.dup)
end