| Class | CodeRay::Encoders::YAML |
| In: |
lib/coderay/encoders/yaml.rb
|
| Parent: | Encoder |
| FILE_EXTENSION | = | 'yaml' |
# File lib/coderay/encoders/yaml.rb, line 31
31: def begin_group kind
32: @data << [:begin_group, kind]
33: end
# File lib/coderay/encoders/yaml.rb, line 39
39: def begin_line kind
40: @data << [:begin_line, kind]
41: end
# File lib/coderay/encoders/yaml.rb, line 35
35: def end_group kind
36: @data << [:end_group, kind]
37: end
# File lib/coderay/encoders/yaml.rb, line 43
43: def end_line kind
44: @data << [:end_line, kind]
45: end
# File lib/coderay/encoders/yaml.rb, line 27
27: def text_token text, kind
28: @data << [text, kind]
29: end
# File lib/coderay/encoders/yaml.rb, line 22
22: def finish options
23: output ::YAML.dump(@data)
24: end