instance method split_args

Ruby on Rails 3.1.12

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

split_args(args)

No documentation comment.

Parameters

args req
Source
# File railties/lib/rails/commands/plugin.rb, line 339
    def split_args(args)
      left = []
      left << args.shift while args[0] and args[0] =~ /^-/
      left << args.shift if args[0]
      [left, args]
    end

Defined in railties/lib/rails/commands/plugin.rb line 339 · 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