Class: Object

Inherits:
BasicObject
Defined in:
lib/geokit/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#try(*a, &b) ⇒ Object


3
4
5
6
7
8
9
# File 'lib/geokit/core_ext.rb', line 3

def try(*a, &b)
  if a.empty? && block_given?
    yield self
  else
    __send__(*a, &b)
  end
end