Created
December 30, 2014 06:21
-
-
Save kdmsnr/eb5e65d002a31c97aa8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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