Skip to content

Instantly share code, notes, and snippets.

@benhoskings
Created July 24, 2008 01:29
Show Gist options
  • Save benhoskings/1987 to your computer and use it in GitHub Desktop.
Save benhoskings/1987 to your computer and use it in GitHub Desktop.
def proclol arg
{
'a' => proc { true },
'b' => proc { do_something },
'c' => proc { your_money || your_fase }
}[arg]
end
proclol('b').call
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment