Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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