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
15 16 17 18 19 |
# File 'lib/delayed/yaml_extensions.rb', line 15 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
59 60 61 62 |
# File 'lib/delayed/yaml_extensions.rb', line 59 def yaml_tag_read_class(name) name.constantize name end |