Module: CmdParse::EnhancedErrors
- Defined in:
- app/cmd_parser.rb
Instance Method Summary collapse
Instance Method Details
#add_failure(obj) ⇒ Object
170 171 172 173 |
# File 'app/cmd_parser.rb', line 170 def add_failure(obj) @expected_string << obj @failing_offset = @pos if @pos > @failing_offset end |
#get_byte ⇒ Object
191 192 193 194 195 196 197 |
# File 'app/cmd_parser.rb', line 191 def get_byte if ans = super @expected_string.clear end ans end |
#match_string(str) ⇒ Object
175 176 177 178 179 180 181 |
# File 'app/cmd_parser.rb', line 175 def match_string(str) if ans = super @expected_string.clear end ans end |
#scan(reg) ⇒ Object
183 184 185 186 187 188 189 |
# File 'app/cmd_parser.rb', line 183 def scan(reg) if ans = super @expected_string.clear end ans end |