Resolver
# File lib/safe_yaml/psych_resolver.rb, line 33 def get_node_tag(node) node.tag end
# File lib/safe_yaml/psych_resolver.rb, line 29 def get_node_type(node) NODE_TYPES[node.class] end
# File lib/safe_yaml/psych_resolver.rb, line 37 def get_node_value(node) @aliased_nodes[node.anchor] = node if node.respond_to?(:anchor) && node.anchor case get_node_type(node) when :root, :map, :seq node.children when :scalar node.value end end
# File lib/safe_yaml/psych_resolver.rb, line 24 def native_resolve(node) @visitor ||= SafeYAML::SafeToRubyVisitor.new(self) @visitor.accept(node) end
# File lib/safe_yaml/psych_resolver.rb, line 20 def resolve_alias(node) resolve_node(@aliased_nodes[node.anchor]) end
Generated with the Darkfish Rdoc Generator 2.