Class: Struct

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

Direct Known Subclasses

Delayed::PerformableMethod

Class Method Summary collapse

Class Method Details

.yaml_tag_read_class(name) ⇒ Object



35
36
37
38
39
40
# File 'lib/delayed/yaml_ext.rb', line 35

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