Registry / utility / optional

optional

JSON →
library0.0.7rbrubygemsunverified

Provides an Optional type to represent values that may be absent, reducing reliance on nil.

gem install optional
INSTALL
IMPORT
SIG · OPTIONAL
O
optional
utilityrubyv0.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Optional
require 'optional'

Creates an Optional with a value and retrieves it with a fallback.

require 'optional' value = Optional.of(42) puts value.or_else(0)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.7latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
optional — gem install optional · libregistry