Parent

Module

Public Class Methods

yaml_new(klass, tag, val) click to toggle source
# File lib/delayed/yaml_ext.rb, line 10
def self.yaml_new(klass, tag, val)
  val.constantize
end

Public Instance Methods

to_yaml( opts = {} ) click to toggle source
# File lib/delayed/yaml_ext.rb, line 14
def to_yaml( opts = {} )
  YAML::quick_emit( nil, opts ) { |out|
    out.scalar(taguri, self.name, :plain)
  }
end
yaml_tag_read_class(name) click to toggle source
# File lib/delayed/yaml_ext.rb, line 20
def yaml_tag_read_class(name)
  # Constantize the object so that ActiveSupport can attempt
  # its auto loading magic. Will raise LoadError if not successful.
  name.constantize
  name
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.