Method: Thor::Actions::ClassMethods#source_paths_for_search
- Defined in:
- lib/thor/actions.rb
#source_paths_for_search ⇒ Object
Returns the source paths in the following order:
1) This class source paths
2) Source root
3) Parents source paths
38 39 40 41 42 43 44 |
# File 'lib/thor/actions.rb', line 38 def source_paths_for_search paths = [] paths += source_paths paths << source_root if source_root paths += from_superclass(:source_paths, []) paths end |