Method: Fech::Filing#form_type
- Defined in:
- lib/fech/filing.rb
#form_type ⇒ Object
Determine the form type of the filing before it’s been parsed. This is needed for the F99 special case.
255 256 257 258 259 260 261 262 263 264 265 266 267 |
# File 'lib/fech/filing.rb', line 255 def form_type if RUBY_VERSION >= "2.0" lines = file_contents.each_line else lines = file_contents.lines end lines.each_with_index do |row, index| next if index == 0 return row.split(delimiter).first end end |