Class: Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/delayed/syck_ext.rb

Class Method Summary collapse

Class Method Details

.yaml_tag_read_class(name) ⇒ Object



28
29
30
31
32
33
# File 'lib/delayed/syck_ext.rb', line 28

def self.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
  "Struct::#{name}"
end