module FBO::Parser::UnknownHandler def parse(text) params = { type: type(text), text: text } FBO::Notices::Unknown.new(params) end protected def type(text) text =~ /^<([^>]*)>/ $1 end extend self end