In Files

Namespace

Files

Tins::Null

Implementation of the null object pattern in Ruby.

Public Instance Methods

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 28
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 32
def nil?
  true
end
to_a() click to toggle source
# File lib/tins/null.rb, line 24
def to_a
  []
end
to_f() click to toggle source
# File lib/tins/null.rb, line 16
def to_f
  0.0
end
to_i() click to toggle source
# File lib/tins/null.rb, line 20
def to_i
  0
end
to_s() click to toggle source
# File lib/tins/null.rb, line 12
def to_s
  ''
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.