Module: HW::Base
- Included in:
- Runner
- Defined in:
- lib/hw/base.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/hw/base.rb', line 19 def included(base) # :nodoc: base.send :extend, ClassMethods base.send :include, Thor::Actions base.send :include, Thor::Shell base.send :include, Actions # Include Rails generators if defined if defined?(Rails) and defined?(Rails::Generators) base.send :include, Rails::Generators::Actions end end |