Created
December 19, 2012 16:14
-
-
Save anonymous/4337919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo do | |
bar :baz | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define :foo do | |
log "got params[:bar] = #{params[:bar].inspect}" | |
other do | |
inner params[:bar] | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define :other do | |
log "in other params[:inner] = #{params[:inner].inspect}" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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