Class: GemExtension

Inherits:
Extension show all
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

Methods inherited from Extension

#load!

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_extensionObject



44
45
46
# File 'lib/yodel/application/extension.rb', line 44

def require_extension
  require @name
end