def do_something(a as Array)
  puts "first array method"
  puts a.inspect
end

def do_something(a as Hash)
  puts "Second hash method"
  puts a.inspect
end

def do_something(a)
  puts "third method anything else"
  puts a.inspect
end

a = ["something", "something esle"]
b = {"key1" => "something", "key2" => "something else"}
c = 1
d = 'c'

do_something(a)
do_something(b)
do_something(c)
do_something(d)

# what's the problem here (A)?

-- 
Posted via http://www.ruby-forum.com/.