module EISCP::Parser
This module provides an interface to the other parser modules.
Public Class Methods
parse(string)
click to toggle source
Passes the string to the proper parser module’s parse method.
# File lib/eiscp/parser.rb, line 13 def self.parse(string) case string when /^ISCP/ EISCPParser.parse(string) when ISCPParser::REGEX ISCPParser.parse(string) else HumanReadableParser.parse(string) end end