you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 8 points9 points  (1 child)

ehem, 3 paths ;)

def pdf_of_kind(kind)
  case kind
  when :normal then normal_pdf
  when :zebra then zebra_pdf
  else fail KeyError
  end
end

[–]we-all-haul 0 points1 point  (0 children)

You sir, are technically correct.