Parent

Methods

SafeYAML::SafeToRubyVisitor

Public Class Methods

new(resolver) click to toggle source
# File lib/safe_yaml/safe_to_ruby_visitor.rb, line 3
def initialize(resolver)
  super()
  @resolver = resolver
end

Public Instance Methods

accept(node) click to toggle source
# File lib/safe_yaml/safe_to_ruby_visitor.rb, line 8
def accept(node)
  if node.tag
    SafeYAML.tag_safety_check!(node.tag, @resolver.options)
    return super
  end

  @resolver.resolve_node(node)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.