Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/delayed/yaml_extensions.rb,
lib/delayed/yaml_extensions.rb
Overview
Load Module/Class from yaml tag.
Instance Method Summary collapse
Instance Method Details
#to_yaml(opts = {}) ⇒ Object
19 20 21 22 23 |
# File 'lib/delayed/yaml_extensions.rb', line 19 def to_yaml(opts = {}) YAML.quick_emit(self.object_id, opts) do |out| out.scalar(taguri, name) end end |
#yaml_tag_read_class(name) ⇒ Object
105 106 107 108 |
# File 'lib/delayed/yaml_extensions.rb', line 105 def yaml_tag_read_class(name) name.constantize name end |