Module: Negative
- Defined in:
- lib/typed_attr/composite_type.rb
Overview
Objects that are Numericlike and < 0.
Class Method Summary collapse
Class Method Details
.===(x) ⇒ Object
120 121 122 |
# File 'lib/typed_attr/composite_type.rb', line 120 def self.=== x n = Numericlike === x and n < 0 end |