Module: Padrino::Module
- Included in:
- AppGem
- Defined in:
- lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/module.rb
Instance Attribute Summary collapse
-
#root(*args) ⇒ String
Helper method for file references within a Padrino module.
Instance Method Summary collapse
-
#dependency_paths ⇒ Array<String>
Returns the list of path globs to load as dependencies Appends custom dependency patterns to the be loaded for Padrino.
-
#gem!(name) ⇒ Object
Register this module as being loaded from a gem.
Instance Attribute Details
Instance Method Details
#dependency_paths ⇒ Array<String>
Returns the list of path globs to load as dependencies Appends custom dependency patterns to the be loaded for Padrino.
51 52 53 54 55 56 |
# File 'lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/module.rb', line 51 def dependency_paths [ "#{root}/lib/**/*.rb", "#{root}/shared/lib/**/*.rb", "#{root}/models/**/*.rb", "#{root}/shared/models/**/*.rb" ] end |
#gem!(name) ⇒ Object
Register this module as being loaded from a gem. This automatically sets the root and therefore the dependency paths correctly.
13 14 15 |
# File 'lib/vendored-middleman-deps/padrino-core-0.11.2/lib/padrino-core/module.rb', line 13 def gem!(name) self.root = Padrino.gem(name, self) end |