Class: Errgonomic::Option::None
- Inherits:
-
Any
show all
- Defined in:
- lib/errgonomic/option.rb,
lib/errgonomic/rails/active_record_optional.rb
Instance Method Summary
collapse
Methods inherited from Any
#==, #and, #and_then, #deconstruct, #expect!, #map, #map_or, #map_or_else, #none_or, #ok, #ok_or, #ok_or_else, #or, #or_else, #some_and, #tap_some, #to_a, #unwrap!, #unwrap_or, #unwrap_or_else, #zip, #zip_with
Instance Method Details
#nil? ⇒ Boolean
63
64
65
|
# File 'lib/errgonomic/rails/active_record_optional.rb', line 63
def nil?
true
end
|
#none? ⇒ Boolean
356
357
358
|
# File 'lib/errgonomic/option.rb', line 356
def none?
true
end
|
#some? ⇒ Boolean
352
353
354
|
# File 'lib/errgonomic/option.rb', line 352
def some?
false
end
|
67
68
69
|
# File 'lib/errgonomic/rails/active_record_optional.rb', line 67
def to_s
raise 'Cannot convert None to String - please use Option API to safely work with internal value'
end
|