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.

Methods
I
N
Class Public methods
new(spec, gem)

Initialize this plugin from a Gem::Specification.

     # File railties/lib/rails/plugin.rb, line 114
114:     def initialize(spec, gem)
115:       directory = spec.full_gem_path
116:       super(directory)
117:       @name = spec.name
118:     end
Instance Public methods
init_path()
     # File railties/lib/rails/plugin.rb, line 120
120:     def init_path
121:       File.join(directory, 'rails', 'init.rb')
122:     end