Skip to content

Instantly share code, notes, and snippets.

@harrisi

harrisi/bar.rb Secret

Created July 20, 2016 08:13
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 harrisi/600f792d4dde3dffb4129b5cefca0656 to your computer and use it in GitHub Desktop.
Save harrisi/600f792d4dde3dffb4129b5cefca0656 to your computer and use it in GitHub Desktop.
foo = [4, 5, 6]
foo.each_with_index do
|info, index|
puts <<ENDDOC
\tIDX: #{index + 1}: #{case info.succ
when 6
"six"
else
info.succ
end
}
ENDDOC
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment