Sha256: edf8b56f0126feaf979eec5bd79c89faac11c5bfc3d180d75e7b49de25010676

Contents?: true

Size: 248 Bytes

Versions: 3

Compression:

Stored size: 248 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fbo-0.0.3 lib/fbo/parser/unknown_handler.rb
fbo-0.0.2 lib/fbo/parser/unknown_handler.rb
fbo-0.0.1 lib/fbo/parser/unknown_handler.rb