Class: Journey::Scanner

### Home Classes Methods

### In Files

- lib/journey/scanner.rb

### Parent

Object

### Methods

- ::new
- #eos?
- #next_token
- #pos
- #pre_match
- #scan_setup

### Files

- CHANGELOG.rdoc
- Manifest.txt
- README.rdoc

### Class/Module Index

Quicksearch

- Journey
- Journey::Formatter
- Journey::GTG
- Journey::GTG::Builder
- Journey::GTG::MatchData
- Journey::GTG::Simulator
- Journey::GTG::TransitionTable
- Journey::NFA
- Journey::NFA::Builder
- Journey::NFA::MatchData
- Journey::NFA::Simulator
- Journey::NFA::TransitionTable
- Journey::NFA::Visitor
- Journey::Nodes
- Journey::Nodes::Binary
- Journey::Nodes::Cat
- Journey::Nodes::Dummy
- Journey::Nodes::Group
- Journey::Nodes::Literal
- Journey::Nodes::Or
- Journey::Nodes::Star
- Journey::Nodes::Symbol
- Journey::Nodes::Terminal
- Journey::Nodes::Unary
- Journey::Parser
- Journey::Path
- Journey::Path::Pattern
- Journey::Path::Pattern::MatchData
- Journey::Route
- Journey::Router
- Journey::Router::RoutingError
- Journey::Router::Strexp
- Journey::Router::Utils
- Journey::Router::Utils::UriEscape
- Journey::Routes
- Journey::Scanner
- Rack

No matching classes.

# Journey::Scanner

### Public Class Methods

new() click to toggle source

    # File lib/journey/scanner.rb, line 5
    def initialize
      @ss = nil
    end

### Public Instance Methods

eos?() click to toggle source

    # File lib/journey/scanner.rb, line 13
    def eos?
      @ss.eos?
    end

next_token() click to toggle source

    # File lib/journey/scanner.rb, line 25
    def next_token
      return if @ss.eos?

      until token = scan || @ss.eos?; end
      token
    end

pos() click to toggle source

    # File lib/journey/scanner.rb, line 17
    def pos
      @ss.pos
    end

pre_match() click to toggle source

    # File lib/journey/scanner.rb, line 21
    def pre_match
      @ss.pre_match
    end

scan_setup(str) click to toggle source

    # File lib/journey/scanner.rb, line 9
    def scan_setup str
      @ss = StringScanner.new str
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.