class NilClass

Public Instance Methods

_?() click to toggle source
# File lib/hobo_support/methodcall.rb, line 59
def _?()
  SafeNil.instance
end
try(*args) click to toggle source
# File lib/hobo_support/methodcall.rb, line 64
def try(*args)
  if args.length==0
    # Hobo style try
    CallIfAvailable.new(self)
  else
    # activesupport 2.3 style try
    nil
  end
end