Class: NilClass
Instance Method Summary collapse
Instance Method Details
#_? ⇒ Boolean
38 39 40 |
# File 'lib/hobo_support/methodcall.rb', line 38 def _?() SafeNil.instance end |
#try(*args) ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'lib/hobo_support/methodcall.rb', line 43 def try(*args) if args.length==0 # Hobo style try CallIfAvailable.new(self) else # activesupport 2.3 style try nil end end |