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
Public Class methods
new(spec, gem)

Initialize this plugin from a Gem::Specification.

     # File railties/lib/rails/plugin.rb, line 106
106:     def initialize(spec, gem)
107:       directory = (gem.frozen? && gem.unpacked_paths.first) || File.join(spec.full_gem_path)
108:       super(directory)
109:       @name = spec.name
110:     end
Public Instance methods
init_path()
     # File railties/lib/rails/plugin.rb, line 112
112:     def init_path
113:       File.join(directory, 'rails', 'init.rb')
114:     end