Skip to content

Commit

Permalink
epub2html: move initialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Jan 10, 2022
1 parent dcb0c0d commit 4d92c88
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/review/epub2html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ def self.execute(*args)
new.execute(*args)
end

def initialize
@opfxml = nil
@inline_footnote = nil
end

def parse_options!(*args)
opts = OptionParser.new

Expand Down Expand Up @@ -60,11 +65,6 @@ def execute_with_params(epubname, reffile)
puts join_html(reffile, htmls)
end

def initialize
@opfxml = nil
@inline_footnote = nil
end

def parse_epub(epubname)
htmls = {}
Zip::File.open(epubname) do |zio|
Expand Down

0 comments on commit 4d92c88

Please sign in to comment.