Class: Yomu
- Inherits:
-
Object
- Object
- Yomu
- Defined in:
- lib/slaw/extract/yomu_patch.rb
Class Method Summary collapse
Class Method Details
.text_from_file(filename) ⇒ Object
4 5 6 7 8 |
# File 'lib/slaw/extract/yomu_patch.rb', line 4 def self.text_from_file(filename) IO.popen("#{java} -Djava.awt.headless=true -jar #{Yomu::JARPATH} --html '#{filename}'", 'r') do |io| io.read end end |