Module: Types::Nil
- Extended by:
- Generic
- Defined in:
- lib/types/nil.rb
Class Method Summary collapse
Methods included from Generic
composite?, to_s, |
Class Method Details
.parse(input) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/types/nil.rb', line 29 def self.parse(input) if input =~ /nil|null/i return nil else raise ArgumentError, "Cannot coerce #{input.inspect} into Nil!" end end |