Registry / utility / andand

andand

JSON →
library1.3.3rbrubygemsunverified

Implements the Maybe Monad in idiomatic Ruby, providing safe navigation to avoid NoMethodError on nil.

gem install andand
INSTALL
IMPORT
SIG · ANDAND
A
andand
utilityrubyv1.3.3
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.

AndAnd
require 'andand'

Safely call methods on potentially nil objects using the andand method.

require 'andand' user = nil user.andand.name # => nil (no error)
Debug
Known issues
gotchaThe andand gem is largely superseded by Ruby 2.3+'s safe navigation operator (&.) and may conflict with other libraries.
fix
Consider using Ruby's built-in &. operator instead of andand for new projects.
affects: >= 1.0.0
Upgrade
Version history
1.3.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
OpenAI (training)
1
Resources
andand — gem install andand · libregistry