Class: Primalize::Single::Number
- Inherits:
-
Object
- Object
- Primalize::Single::Number
- Includes:
- Type
- Defined in:
- lib/primalize/single.rb
Constant Summary
Constants included from Type
Instance Method Summary collapse
- #===(value) ⇒ Object
-
#initialize(&coercion) ⇒ Number
constructor
A new instance of Number.
- #inspect ⇒ Object
Methods included from Type
Constructor Details
#initialize(&coercion) ⇒ Number
Returns a new instance of Number.
197 198 199 |
# File 'lib/primalize/single.rb', line 197 def initialize &coercion @coercion = coercion end |