Sha256: 79eac4a79d5cbbb2604bd1a277527d193a0229eb7f8303a4fffff8b52f175f7e

Contents?: true

Size: 712 Bytes

Versions: 6660

Compression:

Stored size: 712 Bytes

Contents

autoload :YAML, 'yaml'

module CodeRay
module Encoders
  
  # = YAML Encoder
  #
  # Slow.
  class YAML < Encoder
    
    register_for :yaml
    
    FILE_EXTENSION = 'yaml'
    
  protected
    def setup options
      super
      
      @data = []
    end
    
    def finish options
      output ::YAML.dump(@data)
    end
    
  public
    def text_token text, kind
      @data << [text, kind]
    end
    
    def begin_group kind
      @data << [:begin_group, kind]
    end
    
    def end_group kind
      @data << [:end_group, kind]
    end
    
    def begin_line kind
      @data << [:begin_line, kind]
    end
    
    def end_line kind
      @data << [:end_line, kind]
    end
    
  end
  
end
end

Version data entries

6,660 entries across 6,648 versions & 72 rubygems

Version Path
cybrid_api_bank_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_id_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_organization_ruby-0.122.47 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_id_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_bank_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_organization_ruby-0.122.46 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_organization_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_id_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_bank_ruby-0.122.45 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_bank_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_id_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_organization_ruby-0.122.44 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_bank_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_organization_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_id_ruby-0.122.43 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_bank_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_id_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_organization_ruby-0.122.42 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
ory-client-1.15.10 vendor/bundle/ruby/3.1.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb
cybrid_api_organization_ruby-0.122.41 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/yaml.rb