class method self.new

Ruby on Rails 2.3.18

Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.new(spec, gem)

Initialize this plugin from a Gem::Specification.

Parameters

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

Defined in railties/lib/rails/plugin.rb line 169 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::GemPlugin

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close