instance method parse!

Ruby on Rails 3.0.20

Since v2.2.3 Last seen in v3.1.12

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12

Signature

parse!(args=ARGV)

No documentation comment.

Parameters

args opt = ARGV
Source
# File railties/lib/rails/commands/plugin.rb, line 329
    def parse!(args=ARGV)
      general, sub = split_args(args)
      options.parse!(general)

      command = general.shift
      if command =~ /^(install|remove)$/
        command = Commands.const_get(command.capitalize).new(self)
        command.parse!(sub)
      else
        puts "Unknown command: #{command}" unless command.blank?
        puts options
        exit 1
      end
    end

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

Defined in Commands::Plugin

Type at least 2 characters to search.

↑↓ navigate · open · esc close