Skip to content

Instantly share code, notes, and snippets.

@firejox
Created November 28, 2016 16:07
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 firejox/04dee41a4d71e9334ff157b5f4a30b75 to your computer and use it in GitHub Desktop.
Save firejox/04dee41a4d71e9334ff157b5f4a30b75 to your computer and use it in GitHub Desktop.
macro show(qqq)
puts "#{ {{qqq}} }"
end
macro bla(name)
{% if name.is_a?(Def) %}
def {{name.name}}
{% body = name.body %}
{{ body }}
end
{% end %}
end
bla def www
show "asdf"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment