Method: Hanami::Slice::ClassMethods#source_path
- Defined in:
- lib/hanami/slice.rb
#source_path ⇒ Pathname
Returns the slice’s root component directory, accounting for App as a special case.
222 223 224 |
# File 'lib/hanami/slice.rb', line 222 def source_path app? ? root.join(APP_DIR) : root end |