Method: Thor::Base::ClassMethods#inherited
- Defined in:
- lib/thor/base/class_methods.rb
#inherited(klass) ⇒ Object (protected)
Everytime someone inherits from a Thor class, register the klass and file into baseclass.
554 555 556 557 |
# File 'lib/thor/base/class_methods.rb', line 554 def inherited(klass) Thor::Base.register_klass_file(klass) klass.instance_variable_set(:@no_commands, false) end |