module RSpec::Matchers::BuiltIn::BeHelpers
@private
Private Instance Methods
args_to_s()
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 77 def args_to_s @args.empty? ? "" : parenthesize(inspected_args.join(', ')) end
args_to_sentence()
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 93 def args_to_sentence to_sentence(@args) end
expected_to_sentence()
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 89 def expected_to_sentence split_words(@expected) end
inspected_args()
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 85 def inspected_args @args.map { |a| a.inspect } end
parenthesize(string)
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 81 def parenthesize(string) "(#{string})" end