Skip to content

Instantly share code, notes, and snippets.

@vvakame
Created February 1, 2014 07:35
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 vvakame/8749283 to your computer and use it in GitHub Desktop.
Save vvakame/8749283 to your computer and use it in GitHub Desktop.
tslist記法を作って@<list>{hoge} とかで参照したい!
# encoding: utf-8
require 'pp'
require 'review/compiler'
module ReVIEW
class Compiler
defblock :tslist, 2
end
class Builder
def tslist(lines, id, caption)
pp "まじっすかー", lines, id, caption
list(lines, id, caption)
end
end
class HTMLBuilder
def tslist(lines, id, caption)
pp "まじっすかー", lines, id, caption
list(lines, id, caption)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment