Class: CodeRay::Encoders::YAML

### Home Classes Methods

### In Files

- lib/coderay/encoders/yaml.rb

### Parent

CodeRay::Encoders::Encoder

### Methods

- #begin_group
- #begin_line
- #end_group
- #end_line
- #finish
- #setup
- #text_token

### Class/Module Index

Quicksearch

- CodeRay
- CodeRay::Duo
- CodeRay::Encoders
- CodeRay::Encoders::CommentFilter
- CodeRay::Encoders::Count
- CodeRay::Encoders::Debug
- CodeRay::Encoders::DebugLint
- CodeRay::Encoders::Div
- CodeRay::Encoders::Encoder
- CodeRay::Encoders::Filter
- CodeRay::Encoders::HTML
- CodeRay::Encoders::HTML::Output
- CodeRay::Encoders::JSON
- CodeRay::Encoders::LinesOfCode
- CodeRay::Encoders::Lint
- CodeRay::Encoders::Null
- CodeRay::Encoders::Page
- CodeRay::Encoders::Span
- CodeRay::Encoders::Statistic
- CodeRay::Encoders::Terminal
- CodeRay::Encoders::Text
- CodeRay::Encoders::TokenKindFilter
- CodeRay::Encoders::XML
- CodeRay::Encoders::YAML
- CodeRay::FileType
- CodeRay::ForRedCloth
- CodeRay::Plugin
- CodeRay::PluginHost
- CodeRay::Scanners
- CodeRay::Scanners::C
- CodeRay::Scanners::CPlusPlus
- CodeRay::Scanners::CSS
- CodeRay::Scanners::Clojure
- CodeRay::Scanners::Debug
- CodeRay::Scanners::Delphi
- CodeRay::Scanners::Diff
- CodeRay::Scanners::ERB
- CodeRay::Scanners::Go
- CodeRay::Scanners::Groovy
- CodeRay::Scanners::HAML
- CodeRay::Scanners::HTML
- CodeRay::Scanners::JSON
- CodeRay::Scanners::Java
- CodeRay::Scanners::JavaScript
- CodeRay::Scanners::Python
- CodeRay::Scanners::Raydebug
- CodeRay::Scanners::Ruby
- CodeRay::Scanners::SQL
- CodeRay::Scanners::Sass
- CodeRay::Scanners::Scanner
- CodeRay::Scanners::Taskpaper
- CodeRay::Scanners::Text
- CodeRay::Scanners::XML
- CodeRay::Scanners::YAML
- CodeRay::Styles
- CodeRay::Styles::Alpha
- CodeRay::Styles::Style
- CodeRay::Tokens
- CodeRay::TokensProxy
- CodeRay::WordList
- CodeRay::WordList::CaseIgnoring

No matching classes.

# CodeRay::Encoders::YAML

# YAML Encoder

Slow.

### Constants

FILE_EXTENSION

### Public Instance Methods

begin_group(kind) click to toggle source

    # File lib/coderay/encoders/yaml.rb, line 31
    def begin_group kind
      @data << [:begin_group, kind]
    end

begin_line(kind) click to toggle source

    # File lib/coderay/encoders/yaml.rb, line 39
    def begin_line kind
      @data << [:begin_line, kind]
    end

end_group(kind) click to toggle source

    # File lib/coderay/encoders/yaml.rb, line 35
    def end_group kind
      @data << [:end_group, kind]
    end

end_line(kind) click to toggle source

    # File lib/coderay/encoders/yaml.rb, line 43
    def end_line kind
      @data << [:end_line, kind]
    end

text_token(text, kind) click to toggle source

    # File lib/coderay/encoders/yaml.rb, line 27
    def text_token text, kind
      @data << [text, kind]
    end

### Protected Instance Methods

finish(options) click to toggle source

    # File lib/coderay/encoders/yaml.rb, line 22
    def finish options
      output ::YAML.dump(@data)
    end

setup(options) click to toggle source

    # File lib/coderay/encoders/yaml.rb, line 16
    def setup options
      super

      @data = []
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.