Class: ReVIEW::Configure
Instance Attribute Summary collapse
-
#maker ⇒ Object
Returns the value of attribute maker.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#maker ⇒ Object
Returns the value of attribute maker.
5 6 7 |
# File 'lib/review/configure.rb', line 5 def maker @maker end |
Class Method Details
.values ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/review/configure.rb', line 7 def self.values Configure[ # These parameters can be overridden by YAML file. "bookname"=> "example", # it defines epub file name also "booktitle" => "Re:VIEW Sample Book", "title" => nil, "aut" => nil, # author "prt" => nil, # printer(publisher) "asn" => nil, # associated name "ant" => nil, # bibliographic antecedent "clb" => nil, # Collaborator "edt" => nil, # Editor "dsr" => nil, # Designer "ill" => nil, # Illustrator "pht" => nil, # Photographer "trl" => nil, # Translator "date" => nil, # publishing date "rights" => nil, # Copyright messages "description" => nil, # Description "urnid" => nil, # Identifier (nil makes random uuid) "stylesheet" => "stylesheet.css", # stylesheet file "coverfile" => nil, # content file of body of cover page "mytoc" => nil, # whether make own table of contents or not "params" => "", # specify review2html parameters "toclevel" => 3, # level of toc "secnolevel" => 2, # level of section # "epubversion" => 2, "titlepage" => true, # Use title page "toc" => nil, # Use table of contents in body "colophon" => nil, # Use colophon "debug" => nil, # debug flag "catalogfile" => 'catalog.yml', "language" => 'ja', # XXX default language should be JA?? "chapter_file" => 'CHAPS', "part_file" => 'PART', "reject_file" => 'REJECT', "predef_file" => 'PREDEF', "postdef_file" => 'POSTDEF', "page_metric" => ReVIEW::Book::PageMetric.a5, "ext" => '.re', "image_dir" => 'images', "image_types" => %w( .ai .psd .eps .pdf .tif .tiff .png .bmp .jpg .jpeg .gif .svg ), "bib_file" => "bib.re", "colophon_order" => %w(aut csl trl dsr ill cov edt pbl contact prt), ] end |
Instance Method Details
#[](key) ⇒ Object
55 56 57 58 59 60 61 62 |
# File 'lib/review/configure.rb', line 55 def [](key) if self.key?(key) return self.fetch(key) end if @maker && self.key?(@maker) return self.fetch(@maker).fetch(key, nil) end end |