method
parse
parse(s)
public
Hide source
# File lib/spec/runner/class_and_arguments_parser.rb, line 4 def self.parse(s) if s =~ /([a-zA-Z_]+(?:::[a-zA-Z_]+)*):?(.*)/ arg = $2 == "" ? nil : $2 [$1, arg] else raise "Couldn't parse #{s.inspect}" end end