Skip to content

Instantly share code, notes, and snippets.

@coreyhaines
Created November 30, 2009 21:03
Show Gist options
  • Save coreyhaines/245744 to your computer and use it in GitHub Desktop.
Save coreyhaines/245744 to your computer and use it in GitHub Desktop.
def get_my_args(arg1, another_arg)
local_variables.each do |arg_name|
p "#{arg_name} has value #{eval(arg_name)}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment