Method: Bmg::Reader::TextFile#initialize
- Defined in:
- lib/bmg/reader/text_file.rb
#initialize(type, path, options = {}) ⇒ TextFile
Returns a new instance of TextFile.
11 12 13 14 15 16 |
# File 'lib/bmg/reader/text_file.rb', line 11 def initialize(type, path, = {}) = { parse: } if .is_a?(Regexp) @path = path @options = DEFAULT_OPTIONS.merge() @type = infer_type(type) end |