class Bismas::Parser::Legacy
Legacy version of Parser that more closely mimics the behaviour of the original BISMAS software. Deviations from Parser:
-
Records are not required to start with
0x01
, any character will do. -
Category numbers are extended to any character except
0x0D
0x0A
.
- NOT IMPLEMENTED YET
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/bismas/parser.rb, line 58 def initialize(options = {}) raise NotImplementedError, 'not implemented yet' @category_char = '.' super @regex[:category] = /#{@regex[:category]}(?<!#{@chars[:newline]})/ end
Private Instance Methods
match_record()
click to toggle source
# File lib/bismas/parser.rb, line 68 def match_record @input.skip(/./) end