Module: Claws::Support
- Included in:
- Array
- Defined in:
- lib/claws/support.rb
Instance Method Summary collapse
Instance Method Details
#try(meth, *args, &block) ⇒ Object
4 5 6 |
# File 'lib/claws/support.rb', line 4 def try(meth, *args, &block) self.respond_to?(meth) ? self.send(meth, *args, &block) : nil end |