Class: Gimme::Matchers::Numeric

Inherits:
Matcher
  • Object
show all
Defined in:
lib/gimme/matchers.rb

Instance Method Summary collapse

Instance Method Details

#matches?(arg) ⇒ Boolean

Returns:



41
42
43
# File 'lib/gimme/matchers.rb', line 41

def matches?(arg)
  arg.kind_of?(Fixnum) || arg.kind_of?(Numeric) || arg.kind_of?(Float)
end