instance method parse!

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5

Signature

parse!(args=ARGV)

No documentation comment.

Parameters

args opt = ARGV
Source
# File railties/lib/rails/commands/plugin.rb, line 325
      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 325 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Commands::Plugin

Type at least 2 characters to search.

↑↓ navigate · open · esc close