Registry / utility / nullobject

nullobject

JSON →
library0.0.6rbrubygemsunverified

Ruby implementation of the Null Object design pattern.

gem install nullobject
INSTALL
IMPORT
SIG · NULLOBJECT
N
nullobject
utilityrubyv0.0.6
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.

NullObject
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 issues

No known issues recorded.

Upgrade
Version history
0.0.6latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
nullobject — gem install nullobject · libregistry