Class: ScraperWiki::API::Matchers::HaveIntegerValues
Instance Method Summary
collapse
Instance Method Details
#failure_predicate ⇒ Object
736
737
738
|
# File 'lib/scraperwiki-api/matchers.rb', line 736
def failure_predicate
"aren't integers"
end
|
#match?(v) ⇒ Boolean
732
733
734
|
# File 'lib/scraperwiki-api/matchers.rb', line 732
def match?(v)
Integer(v) rescue false
end
|
#negative_failure_predicate ⇒ Object
740
741
742
|
# File 'lib/scraperwiki-api/matchers.rb', line 740
def negative_failure_predicate
'are integers'
end
|