Sha256: e70bf44b34d5dab364aa03951fa4b15cb0802162824101332dc1d45eaa40908a
Contents?: true
Size: 335 Bytes
Versions: 59
Compression:
Stored size: 335 Bytes
Contents
module Spec module Runner class ClassAndArgumentsParser class << self def 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 end end end end
Version data entries
59 entries across 59 versions & 10 rubygems