Class Module
In: lib/delayed/syck_ext.rb
Parent: Object

Methods

Public Class methods

[Source]

   # File lib/delayed/syck_ext.rb, line 4
4:   def self.yaml_new(klass, tag, val)
5:     val.constantize
6:   end

Public Instance methods

[Source]

    # File lib/delayed/syck_ext.rb, line 8
 8:   def to_yaml(options = {})
 9:     YAML.quick_emit(nil, options) do |out|
10:       out.scalar(taguri, name, :plain)
11:     end
12:   end

[Source]

    # File lib/delayed/syck_ext.rb, line 14
14:   def yaml_tag_read_class(name)
15:     # Constantize the object so that ActiveSupport can attempt
16:     # its auto loading magic. Will raise LoadError if not successful.
17:     name.constantize
18:     name
19:   end

[Validate]