Class: Pubid::Api::Parser
- Inherits:
-
Parslet::Parser
- Object
- Parslet::Parser
- Pubid::Api::Parser
- Defined in:
- lib/pubid/api/parser.rb
Instance Method Summary collapse
-
#parse(input) ⇒ Object
Preprocessing to normalize common typos.
Instance Method Details
#parse(input) ⇒ Object
Preprocessing to normalize common typos
133 134 135 136 137 |
# File 'lib/pubid/api/parser.rb', line 133 def parse(input) # Normalize MPMP typo to MPMS normalized = input.gsub("API MPMP", "API MPMS") super(normalized) end |