Skip to content

Instantly share code, notes, and snippets.

@Intrepidd
Forked from ys/My_first_thought.rb
Created August 23, 2012 11:27
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 Intrepidd/3435746 to your computer and use it in GitHub Desktop.
Save Intrepidd/3435746 to your computer and use it in GitHub Desktop.
How would you align these kind of things in Ruby?
local_var.method_with_hash_and_block(
mandatory_param,
option_1: a,
option_2: blabla,
option_3: blablablablablabla,
option_4: bblablablablablablablabla,
option_5: bblablablabla) do |v|
d = v.bla
e = v.bla
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment