Class: GemExtension
- Defined in:
- lib/yodel/application/extension.rb
Instance Attribute Summary
Attributes inherited from Extension
#layouts_dir, #lib_dir, #migrations_dir, #models_dir, #name, #public_dir
Instance Method Summary collapse
-
#initialize(gem) ⇒ GemExtension
constructor
A new instance of GemExtension.
- #require_extension ⇒ Object
Methods inherited from Extension
Constructor Details
#initialize(gem) ⇒ GemExtension
Returns a new instance of GemExtension.
38 39 40 41 42 |
# File 'lib/yodel/application/extension.rb', line 38 def initialize(gem) @name = gem.name @lib_dir = File.join(gem.full_gem_path, Yodel::EXTENSION_LIB_DIRECTORY_NAME) super() end |
Instance Method Details
#require_extension ⇒ Object
44 45 46 |
# File 'lib/yodel/application/extension.rb', line 44 def require_extension require @name end |