Parent

Methods

Class/Module Index [+]

Quicksearch

Rails::GemPlugin

This Plugin subclass represents a Gem plugin. Although RubyGems has already taken care of $LOAD_PATHs, it exposes its load_paths to add them to Dependencies.load_paths.

Public Class Methods

new(spec, gem) click to toggle source

Initialize this plugin from a Gem::Specification.

# File lib/rails/plugin.rb, line 169
def initialize(spec, gem)
  directory = spec.full_gem_path
  super(directory)
  @name = spec.name
end

Public Instance Methods

init_path() click to toggle source
# File lib/rails/plugin.rb, line 175
def init_path
  File.join(directory, 'rails', 'init.rb')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.