In: |
test/unit/assertions.rb
|
Parent: | Object |
# File test/unit/assertions.rb, line 401 def self.create(string) parts = (string ? string.scan(/(?=[^\\])\?|(?:\\\?|[^\?])+/m) : []) self.new(parts) end
# File test/unit/assertions.rb, line 408 def initialize(parts) @parts = parts @count = parts.find_all{|e| e == '?'}.size end