Method: Murdoc::Annotator.from_file
- Defined in:
- lib/murdoc/annotator.rb
.from_file(filename, source_type = nil, options = {}) ⇒ Object
You may also initialize annotator from file, it will even try to detect the source type from extension.
34 35 36 37 38 |
# File 'lib/murdoc/annotator.rb', line 34 def self.from_file(filename, source_type = nil, = {}) self.new(File.read(filename), source_type || detect_source_type_from_filename(filename), ) end |