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

Methods

Public Class methods

[Source]

    # File lib/delayed/yaml_ext.rb, line 10
10:   def self.yaml_new(klass, tag, val)
11:     val.constantize
12:   end

Public Instance methods

[Source]

    # File lib/delayed/yaml_ext.rb, line 14
14:   def to_yaml( opts = {} )
15:     YAML::quick_emit( nil, opts ) { |out|
16:       out.scalar(taguri, self.name, :plain)
17:     }
18:   end

[Source]

    # File lib/delayed/yaml_ext.rb, line 20
20:   def yaml_tag_read_class(name)
21:     # Constantize the object so that ActiveSupport can attempt
22:     # its auto loading magic. Will raise LoadError if not successful.
23:     name.constantize
24:     name
25:   end

[Validate]