Parent

Methods

Class Index [+]

Quicksearch

Spec::Runner::ClassAndArgumentsParser

Public Class Methods

parse(s) click to toggle source
    # File lib/spec/runner/class_and_arguments_parser.rb, line 4
 4:       def self.parse(s)
 5:         if s =~ /([a-zA-Z_]+(?:::[a-zA-Z_]+)*):?(.*)/
 6:           arg = $2 == "" ? nil : $2
 7:           [$1, arg]
 8:         else
 9:           raise "Couldn't parse #{s.inspect}"
10:         end
11:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.