Class: ScraperWiki::API::Matchers::HaveValuesStartingWith
Instance Method Summary
collapse
Instance Method Details
#failure_predicate ⇒ Object
698
699
700
|
# File 'lib/scraperwiki-api/matchers.rb', line 698
def failure_predicate
"don't start with #{@expected}"
end
|
#match?(v) ⇒ Boolean
694
695
696
|
# File 'lib/scraperwiki-api/matchers.rb', line 694
def match?(v)
v.start_with? @expected
end
|
#negative_failure_predicate ⇒ Object
702
703
704
|
# File 'lib/scraperwiki-api/matchers.rb', line 702
def negative_failure_predicate
"start with #{@expected}"
end
|