Class: Hako::YamlLoader::Visitor
- Inherits:
-
Psych::Visitors::ToRuby
- Object
- Psych::Visitors::ToRuby
- Hako::YamlLoader::Visitor
- Defined in:
- lib/hako/yaml_loader.rb
Constant Summary collapse
- INCLUDE_TAG =
'tag:include'
- SHOVEL =
'<<'
Instance Method Summary collapse
-
#initialize(scanner, class_loader, &block) ⇒ Visitor
constructor
A new instance of Visitor.
- #revive_hash(hash, o) ⇒ Object
Constructor Details
#initialize(scanner, class_loader, &block) ⇒ Visitor
Returns a new instance of Visitor.
32 33 34 35 |
# File 'lib/hako/yaml_loader.rb', line 32 def initialize(scanner, class_loader, &block) super(scanner, class_loader) @domain_types[INCLUDE_TAG] = [INCLUDE_TAG, block] end |