Skip to content

Instantly share code, notes, and snippets.

@danielnegri
Created February 2, 2012 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielnegri/1723093 to your computer and use it in GitHub Desktop.
Save danielnegri/1723093 to your computer and use it in GitHub Desktop.
Document Class
case title
when 'War And Peace'
puts 'Tolstoy'
when 'Romeo And Juliet'
puts 'Shakespeare'
else
puts "Don't know" end
author = case title
when 'War And Peace' then 'Tolstoy'
when 'Romeo And Juliet' then 'Shakespeare'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment