Sha256: 86cfaf0ac4f0565a8229c723b5454e23a5c90e8f9e736756fc31f263acf09653

Contents?: true

Size: 812 Bytes

Versions: 2

Compression:

Stored size: 812 Bytes

Contents

# Copyright (c) 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".
#

require 'review/exception'

require 'review/book/base'
require 'review/book/chapter'
require 'review/book/part'
require 'review/book/page_metric'
require 'review/book/volume'
require 'review/book/index'

module ReVIEW
  @default_book = nil

  def self.book
    @default_book ||= Book::Base.load
  end

  module Book
    def self.load_default
      Base.load_default
    end

    def self.load(dir)
      Base.load dir
    end

    def self.update_rubyenv(dir)
      Base.update_rubyenv dir
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
review-2.5.0 lib/review/book.rb
review-2.4.0 lib/review/book.rb