Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
Created June 16, 2014 04:12
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 baroquebobcat/0236307218d989615ffa to your computer and use it in GitHub Desktop.
Save baroquebobcat/0236307218d989615ffa to your computer and use it in GitHub Desktop.
Mirah Macro Help: Some macro notes

If you want to unquote the args from a block, be sure to not include the pipes.

#Correct

quote do
  `list`.each { `block.arguments` cool_thing; `[block.body]` }
end

#Wrong

quote do
  `list`.each { |`block.arguments`| cool_thing; `[block.body]` }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment