kevinelliott / agent_orange

Parse and process User Agents like a secret one
126 stars 36 forks source link

Parser Chain #34

Open kevinelliott opened 11 years ago

kevinelliott commented 11 years ago

Create a parser chain, that uses smart matchers to detect platforms/devices/etc.

Base class is AgentOrange::Matcher, and contains all the rules necessary to match. Matchers are stuffed in an ordered array, and detection will process them in order.

Some thought is necessary to this architecture and how it will be implemented.