Skip to content

Instantly share code, notes, and snippets.

Created December 19, 2012 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4337919 to your computer and use it in GitHub Desktop.
Save anonymous/4337919 to your computer and use it in GitHub Desktop.
foo do
bar :baz
end
define :foo do
log "got params[:bar] = #{params[:bar].inspect}"
other do
inner params[:bar]
end
end
define :other do
log "in other params[:inner] = #{params[:inner].inspect}"
end
[2012-12-19T16:08:38+00:00] INFO: got params[:bar] = :baz
[2012-12-19T16:08:38+00:00] INFO: in other params[:inner] = nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment