method
build_message
ruby latest stable - Class:
Test::Unit::Assertions
build_message(head, template=nil, *arguments)public
No documentation available.
# File lib/test/unit/assertions.rb, line 387
def build_message(head, template=nil, *arguments) #:nodoc:
template &&= template.chomp
template.gsub(/\G((?:[^\\]|\\.)*?)(\\)?\?/) { $1 + ($2 ? "?" : mu_pp(arguments.shift)) }
end