method
args_to_sentence
1.1.4 -
Show latest stable
- Class:
Spec::Matchers::Be
args_to_sentence()private
No documentation available.
# File lib/spec/matchers/be.rb, line 173
def args_to_sentence
case @args.length
when 0
""
when 1
" #{@args[0]}"
else
" #{@args[0...-1].join(', ')} and #{@args[-1]}"
end
end