Class: Rudachi::FileParser
- Inherits:
-
Object
- Object
- Rudachi::FileParser
- Defined in:
- lib/rudachi/file_parser.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(**opts) ⇒ FileParser
constructor
A new instance of FileParser.
- #parse(path) ⇒ Object
Constructor Details
Class Method Details
.parse(path) ⇒ Object
6 7 8 |
# File 'lib/rudachi/file_parser.rb', line 6 def self.parse(path) new.parse(path) end |
Instance Method Details
#parse(path) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/rudachi/file_parser.rb', line 15 def parse(path) output_stream do |output| take_stdout(output) do Java::SudachiCommandLine.main( Option.cmds(@opts).push(path) ) end end end |