class Proc
Public Instance Methods
try(*a) { |self| ... }
click to toggle source
# File lib/pubnub.rb, line 40 def try(*a, &b) if a.empty? && block_given? yield self else __send__(*a, &b) end end
# File lib/pubnub.rb, line 40 def try(*a, &b) if a.empty? && block_given? yield self else __send__(*a, &b) end end