class RSpec::Matchers::BuiltIn::StartWith
@api private Provides the implementation for `start_with`. Not intended to be instantiated directly.
Private Instance Methods
element_matches?()
click to toggle source
# File lib/rspec/matchers/built_in/start_or_end_with.rb, line 73 def element_matches? values_match?(expected, actual[0]) end
subset_matches?()
click to toggle source
# File lib/rspec/matchers/built_in/start_or_end_with.rb, line 69 def subset_matches? values_match?(expected, actual[0, expected.length]) end