Class: Law::Japan::EGov::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/law/japan/e_gov/converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(html_dir, text_dir) ⇒ Converter

Returns a new instance of Converter.



9
10
11
12
# File 'lib/law/japan/e_gov/converter.rb', line 9

def initialize(html_dir, text_dir)
  @html_dir = html_dir
  @text_dir = text_dir
end

Instance Attribute Details

#html_dirObject (readonly)

Returns the value of attribute html_dir.



7
8
9
# File 'lib/law/japan/e_gov/converter.rb', line 7

def html_dir
  @html_dir
end

#text_dirObject (readonly)

Returns the value of attribute text_dir.



7
8
9
# File 'lib/law/japan/e_gov/converter.rb', line 7

def text_dir
  @text_dir
end

Instance Method Details

#convert!Object



14
15
16
17
18
# File 'lib/law/japan/e_gov/converter.rb', line 14

def convert!
  logger.info "Start converting all laws"
  convert
  logger.info "Finish converting all laws"
end