Module: Types::Numeric
- Extended by:
- Generic
- Defined in:
- lib/types/numeric.rb
Overview
Represents a numeric type (integer or float).
“‘ruby type = Types::Numeric type.parse(“42”) # => 42 type.parse(“3.14”) # => 3.14 “`
Class Method Summary collapse
-
.parse(input) ⇒ Object
Parses the input as a numeric value (integer or float).
Methods included from Generic
composite?, to_rbs, to_s, |