Module: RSpec::Matchers::BuiltIn::BeHelpers Private
Do not use. This module is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | rspec-expectations/lib/rspec/matchers/built_in/be.rb |
Instance Method Summary
- #args_to_s private Internal use only
- #args_to_sentence private Internal use only
- #expected_to_sentence private Internal use only
- #inspected_args private Internal use only
- #parenthesize(string) private Internal use only
Instance Method Details
#args_to_s (private)
[ GitHub ]# File 'rspec-expectations/lib/rspec/matchers/built_in/be.rb', line 77
def args_to_s @args.empty? ? "" : parenthesize(inspected_args.join(', ')) end
#args_to_sentence (private)
[ GitHub ]# File 'rspec-expectations/lib/rspec/matchers/built_in/be.rb', line 93
def args_to_sentence EnglishPhrasing.list(@args) end
#expected_to_sentence (private)
[ GitHub ]# File 'rspec-expectations/lib/rspec/matchers/built_in/be.rb', line 89
def expected_to_sentence EnglishPhrasing.split_words(@expected) end
#inspected_args (private)
[ GitHub ]# File 'rspec-expectations/lib/rspec/matchers/built_in/be.rb', line 85
def inspected_args @args.map { |a| RSpec::Support::ObjectFormatter.format(a) } end
#parenthesize(string) (private)
[ GitHub ]# File 'rspec-expectations/lib/rspec/matchers/built_in/be.rb', line 81
def parenthesize(string) "(#{string})" end