Skip to content

Instantly share code, notes, and snippets.

@kdmsnr
Created December 30, 2014 06:21
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 kdmsnr/eb5e65d002a31c97aa8b to your computer and use it in GitHub Desktop.
Save kdmsnr/eb5e65d002a31c97aa8b to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
ReVIEW::Compiler.defblock :tsv, 0..2, true
module ReVIEW
class Builder
# //tsv[ファイル名][キャプション]
def tsv(lines, id, caption = nil)
lines = File.open(id)
table(lines, id, caption)
end
end
end
module ReVIEW
module Book
class TableIndex < Index
def TableIndex.item_type
'table|tsv'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment