In Files

Namespace

Files

Class/Module Index [+]

Quicksearch

Tins::Null

Implementation of the null object pattern in Ruby.

Public Instance Methods

blank?() click to toggle source
# File lib/tins/null.rb, line 48
def blank?
  true
end
const_missing(*) click to toggle source
# File lib/tins/null.rb, line 8
def const_missing(*)
  self
end
inspect() click to toggle source
# File lib/tins/null.rb, line 40
def inspect
  'NULL'
end
method_missing(*) click to toggle source
# File lib/tins/null.rb, line 4
def method_missing(*)
  self
end
nil?() click to toggle source
# File lib/tins/null.rb, line 44
def nil?
  true
end
to_a() click to toggle source
# File lib/tins/null.rb, line 32
def to_a
  []
end
to_ary() click to toggle source
# File lib/tins/null.rb, line 36
def to_ary
  nil
end
to_f() click to toggle source
# File lib/tins/null.rb, line 20
def to_f
  0.0
end
to_i() click to toggle source
# File lib/tins/null.rb, line 24
def to_i
  0
end
to_int() click to toggle source
# File lib/tins/null.rb, line 28
def to_int
  nil
end
to_s() click to toggle source
# File lib/tins/null.rb, line 12
def to_s
  ''
end
to_str() click to toggle source
# File lib/tins/null.rb, line 16
def to_str
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.