module ReVIEW
Copyright © 2009-2017 Minero Aoki, Kenshi Muto
2002-2008 Minero Aoki
This program is free software. You can distribute or modify this program under the terms of the GNU LGPL, Lesser General Public License version 2.1. For details of the GNU LGPL, see the file “COPYING”.
Copyright © 2007-2017 Minero Aoki, Kenshi Muto
2002-2007 Minero Aoki
This program is free software. You can distribute or modify this program under the terms of the GNU LGPL, Lesser General Public License version 2.1. For details of the GNU LGPL, see the file “COPYING”.
This program is free software. You can distribute or modify this program under the terms of the GNU LGPL, Lesser General Public License version 2.1.
Copyright © 2007-2017 Minero Aoki, Kenshi Muto
2002-2007 Minero Aoki
This program is free software. You can distribute or modify this program under the terms of the GNU LGPL, Lesser General Public License version 2.1. For details of the GNU LGPL, see the file “COPYING”.
Copyright © 2017 Minero Aoki, Kenshi Muto
2002-2006 Minero Aoki
This program is free software. You can distribute or modify this program under the terms of the GNU LGPL, Lesser General Public License version 2.1. For details of the GNU LGPL, see the file “COPYING”.
Copyright © 2008-2017 Minero Aoki, Kenshi Muto, Masayoshi Takahashi,
KADO Masanori
This program is free software. You can distribute or modify this program under the terms of the GNU LGPL, Lesser General Public License version 2.1.
Constants
- VERSION
Public Class Methods
# File lib/review/book.rb, line 22 def self.book @default_book ||= Book::Base.load end
# File lib/review/logger.rb, line 14 def self.logger @logger ||= ReVIEW::Logger.new end
# File lib/review/logger.rb, line 18 def self.logger=(logger) @logger = logger end
Public Instance Methods
# File lib/review/tocparser.rb, line 103 def compile_label(line) b = ReVIEW::TEXTBuilder.new dummy_book = ReVIEW::Book::Base.load dummy_chapter = ReVIEW::Book::Chapter.new(dummy_book, 1, '-', nil, StringIO.new) dummy_loc = Location.new('', StringIO.new) b.bind(ReVIEW::Compiler.new(b), dummy_chapter, dummy_loc) b.compile_inline(line) end
# File lib/review/tocparser.rb, line 112 def error!(filename, lineno, msg) raise "#{filename}:#{lineno}: #{msg}" end
# File lib/review/tocparser.rb, line 98 def get_label(line) line = line.strip.sub(/\A=+\s*/, '') compile_label(line) end