class SafeYAML::PsychTagVerifier
Attributes
Public Class Methods
new(whitelist)
click to toggle source
# File lib/safe_yaml/psych_tag_verifier.rb, line 5 def initialize(whitelist) @tags = Set.new @verifier = SafeYAML::TagVerifier.new(whitelist) end
Public Instance Methods
alias(anchor)
click to toggle source
# File lib/safe_yaml/psych_tag_verifier.rb, line 14 def alias(anchor) end
end_mapping()
click to toggle source
# File lib/safe_yaml/psych_tag_verifier.rb, line 28 def end_mapping end
end_sequence()
click to toggle source
# File lib/safe_yaml/psych_tag_verifier.rb, line 35 def end_sequence end
scalar(value, anchor, tag, plain, quoted, style)
click to toggle source
# File lib/safe_yaml/psych_tag_verifier.rb, line 17 def scalar(value, anchor, tag, plain, quoted, style) if !quoted && value.is_a?(String) YAML.check_string_for_symbol!(value) end @verifier.verify_tag!(tag, value) end
start_mapping(anchor, tag, implicit, style)
click to toggle source
# File lib/safe_yaml/psych_tag_verifier.rb, line 24 def start_mapping(anchor, tag, implicit, style) @verifier.verify_tag!(tag, nil) end
start_sequence(anchor, tag, implicit, style)
click to toggle source
# File lib/safe_yaml/psych_tag_verifier.rb, line 31 def start_sequence(anchor, tag, implicit, style) @verifier.verify_tag!(tag, nil) end
streaming?()
click to toggle source
# File lib/safe_yaml/psych_tag_verifier.rb, line 10 def streaming? false end