Method: Such::Thing.which_method

Defined in:
lib/such/thing.rb

.which_method(container, methods = INTOS) ⇒ Object



63
64
65
66
67
# File 'lib/such/thing.rb', line 63

def self.which_method(container, methods=INTOS)
  mthd = methods.detect{container.respond_to?_1}
  raise "Don't know how to put into #{container.class}." if mthd.nil?
  return mthd
end