Registry / utility / nullobject

nullobject

JSON →
library0.0.6rbrubygemsunverified

Ruby implementation of the Null Object design pattern.

utility
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.

require 'nullobject'

Create a null object that returns nil for any method call.

require 'nullobject' class MyNull < NullObject def method_missing(*) nil end end null = MyNull.new puts null.anything # => nil
Debug
Known footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources