Skip to content

Commit 1e94c12

Browse files
committed
Merge pull request #81 from kdmsnr/refactoring
refactoring: split book.rb into book/*.rb
2 parents e793969 + 6bd0f21 commit 1e94c12

19 files changed

+841
-744
lines changed

bin/review-compile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _main
138138
error 'no input'
139139
exit 1
140140
end
141-
ReVIEW::Chapter.intern_pathes(ARGV).each do |chap|
141+
ReVIEW::Book::Chapter.intern_pathes(ARGV).each do |chap|
142142
result = compiler.compile(chap)
143143
puts result unless check_only
144144
end

bin/review-index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _main
6161
}
6262
parser.on('-c', '--chapter C', 'list only chapter C.') {|c|
6363
begin
64-
source = ReVIEW::Part.new(1, [ReVIEW.book.chapter(c)])
64+
source = ReVIEW::Book::Part.new(1, [ReVIEW.book.chapter(c)])
6565
rescue
6666
error_exit "chapter #{c} does not exist in this book"
6767
end

bin/review-vol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ bindir = Pathname.new(__FILE__).realpath.dirname
1616
$LOAD_PATH.unshift((bindir + '../lib').realpath)
1717

1818
require 'review/book'
19+
require 'review/book/volume'
1920
require 'review/exception'
2021
require 'optparse'
2122
require 'nkf'

0 commit comments

Comments
 (0)