Sha256: fac2454fc7afa2eb50169b35c4bd631d0f0c1c9a1ea94dc2da537f1755a0f236
Contents?: true
Size: 263 Bytes
Versions: 11
Compression:
Stored size: 263 Bytes
Contents
module Spruz # Implementation of the null object pattern in Ruby. module Null def method_missing(*) self end def to_s '' end def inspect 'NULL' end end NULL = Class.new do include Spruz::Null end.new end
Version data entries
11 entries across 11 versions & 1 rubygems