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