lib/core/facets/kernel/try.rb in facets-2.9.0.pre.1 vs lib/core/facets/kernel/try.rb in facets-2.9.0.pre.2
- old
+ new
@@ -16,20 +16,20 @@
#
# @example && @example.name
#
# or:
#
- # @example? @example.name : nil
+ # @example ? @example.name : nil
#
# But with try
#
# @example.try(:name) #=> "bob"
#
# or
#
- # @example.try.name #=> "bob"
+ # @example.try.name #=> "bob"
#
- # It also accepts arguments and/or a block, for the method it is trying:
+ # It also accepts arguments and a block, for the method it is trying:
#
# @people.try(:collect){ |p| p.name }
#
def try(method=nil, *args, &block)
if method