class method self.included

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.included(base)

Even more convenient access to commands. Include Commands in the generator Base class to get a nice #command instance method which returns a delegate for the requested command.

Parameters

base req
Source
# File railties/lib/rails_generator/commands.rb, line 20
      def self.included(base)
        base.send(:define_method, :command) do |command|
          Commands.instance(command, self)
        end
      end

Defined in railties/lib/rails_generator/commands.rb line 20 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Generator::Commands

Type at least 2 characters to search.

↑↓ navigate · open · esc close