Parent

Methods

Class Index [+]

Quicksearch

RKelly::Lexeme

Attributes

name[R]

(Not documented)

pattern[R]

(Not documented)

Public Class Methods

new(name, pattern, &block) click to toggle source

(Not documented)

# File lib/rkelly/lexeme.rb, line 6
    def initialize(name, pattern, &block)
      @name       = name
      @pattern    = pattern
      @block      = block
    end

Public Instance Methods

match(string) click to toggle source

(Not documented)

# File lib/rkelly/lexeme.rb, line 12
    def match(string)
      match = pattern.match(string)
      return Token.new(name, match.to_s, &@block) if match
      match
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.