module Wifimap

Constants

VERSION

Public Class Methods

parse(file_content) click to toggle source

Parse the content of a dump file and return a parser instance.

@param [String] file_content @return [Wifimap::Parser::*] a parser instance

# File lib/wifimap.rb, line 20
def self.parse(file_content)
  Wifimap::ParserFactory.create(file_content)
end
parse_file(filename) click to toggle source

A wrapper on .parse to read directly from a file.

@param [String] filename @return [Wifimap::Parser::*] a parser instance

# File lib/wifimap.rb, line 28
def self.parse_file(filename)
  file_content = File.read(filename)
  parse(file_content)
end