2 3 4 5 6
# File 'lib/subtle/safety_proc.rb', line 2 def call_safely self.call rescue yield if block_given? end
2 3 4 5 6 7
# File 'lib/subtle/exception.rb', line 2 def exception_raised self.call nil rescue => e e end
2 3 4
# File 'lib/subtle/lambda_to_object.rb', line 2 def to_object Subtle::LazyCover.new self end