lib/tins/null.rb
module Tins # Implementation of the null object pattern in Ruby. module Null def method_missing(*) self end def const_missing(*) self end def to_s '' end def inspect 'NULL' end end NULL = Class.new do include Tins::Null end.new end require 'tins/alias'