Class: Contracts::Builtin::Num
- Inherits:
-
Object
- Object
- Contracts::Builtin::Num
- Defined in:
- lib/contracts/builtin_contracts.rb
Overview
Check that an argument is Numeric
.
Class Method Summary collapse
Class Method Details
.valid?(val) ⇒ Boolean
21 22 23 |
# File 'lib/contracts/builtin_contracts.rb', line 21 def self.valid?(val) val.is_a? Numeric end |