Parent

Class/Module Index [+]

Quicksearch

Whois::Record::Parser::Scanners::Base

Public Class Methods

new(content) click to toggle source
# File lib/whois/record/parser/scanners/base.rb, line 25
def initialize(content)
  @input = StringScanner.new(content)
end
tokenizer(name, &block) click to toggle source
# File lib/whois/record/parser/scanners/base.rb, line 20
def self.tokenizer(name, &block)
  define_method(name, &block)
end

Public Instance Methods

parse() click to toggle source
# File lib/whois/record/parser/scanners/base.rb, line 29
def parse
  # The temporary store.
  # Scanners may use this to store pointers, states or other flags.
  @tmp = {}

  # A super-simple AST store.
  @ast = {}

  tokenize until @input.eos?

  @ast
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.