module Spruz::Null
Implementation of the null object pattern in Ruby.
Public Instance Methods
const_missing(*)
click to toggle source
# File lib/spruz/null.rb, line 8 def const_missing(*) self end
inspect()
click to toggle source
# File lib/spruz/null.rb, line 16 def inspect 'NULL' end
method_missing(*)
click to toggle source
# File lib/spruz/null.rb, line 4 def method_missing(*) self end
to_s()
click to toggle source
# File lib/spruz/null.rb, line 12 def to_s '' end