Class: Syntax::Default

### Home Classes Methods

### In Files

- lib/syntax.rb

### Parent

Object

### Methods

- #tokenize

### Class/Module Index

Quicksearch

- Syntax
- Syntax::AnsiC
- Syntax::CSS21
- Syntax::Convertors
- Syntax::Convertors::Abstract
- Syntax::Convertors::HTML
- Syntax::Default
- Syntax::Fortran
- Syntax::Javascript
- Syntax::Ruby
- Syntax::SQLite
- Syntax::Token
- Syntax::Tokenizer
- Syntax::Version
- Syntax::XML
- Syntax::YAML

No matching classes.

# Syntax::Default

A default tokenizer for handling syntaxes that are not explicitly handled elsewhere. It simply yields the given text as a single token.

### Public Instance Methods

tokenize( text ) click to toggle source

Yield the given text as a single token.

    # File lib/syntax.rb, line 10
    def tokenize( text )
      yield Token.new( text, :normal )
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.