Flowdock
method

new

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: ConsoleCommand
new(args = [], local_options = {}, config = {}) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/commands/console/console_command.rb, line 76
      def initialize(args = [], local_options = {}, config = {})
        console_options = []

        # For the same behavior as OptionParser, leave only options after "--" in ARGV.
        termination = local_options.find_index("--")
        if termination
          console_options = local_options[termination + 1..-1]
          local_options = local_options[0...termination]
        end

        ARGV.replace(console_options)
        super(args, local_options, config)
      end
Register or log in to add new notes.