Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/yake/support.rb
Instance Method Summary collapse
Instance Method Details
#try(method, *args, **kwargs, &block) ⇒ Object
68 69 70 71 72 |
# File 'lib/yake/support.rb', line 68 def try(method, *args, **kwargs, &block) send(method, *args, **kwargs) rescue block_given? ? yield(self) : nil end |