Class: SafeYAML::SyckResolver

### Home Classes Methods

### In Files

- lib/safe_yaml/syck_resolver.rb

### Parent

SafeYAML::Resolver

### Methods

- ::new
- #get_node_tag
- #get_node_type
- #get_node_value
- #native_resolve
- #value_is_quoted?

### Class/Module Index

Quicksearch

- SafeYAML
- SafeYAML::Deep
- SafeYAML::LibyamlChecker
- SafeYAML::Parse
- SafeYAML::Parse::Date
- SafeYAML::Parse::Hexadecimal
- SafeYAML::Parse::Sexagesimal
- SafeYAML::PsychHandler
- SafeYAML::PsychResolver
- SafeYAML::Resolver
- SafeYAML::SafeToRubyVisitor
- SafeYAML::SyckResolver
- SafeYAML::Transform
- SafeYAML::Transform::ToBoolean
- SafeYAML::Transform::ToDate
- SafeYAML::Transform::ToFloat
- SafeYAML::Transform::ToInteger
- SafeYAML::Transform::ToNil
- SafeYAML::Transform::ToSymbol
- SafeYAML::Transform::TransformationMap
- SafeYAML::Transform::TransformationMap::CaseAgnosticMap
- SafeYAML::Transform::TransformationMap::ClassMethods
- Object
- YAML

No matching classes.

# SafeYAML::SyckResolver

### Constants

NODE_TYPES
QUOTE_STYLES

### Public Class Methods

new(options={}) click to toggle source

    # File lib/safe_yaml/syck_resolver.rb, line 14
    def initialize(options={})
      super
    end

### Public Instance Methods

get_node_tag(node) click to toggle source

    # File lib/safe_yaml/syck_resolver.rb, line 26
    def get_node_tag(node)
      node.type_id
    end

get_node_type(node) click to toggle source

    # File lib/safe_yaml/syck_resolver.rb, line 22
    def get_node_type(node)
      NODE_TYPES[node.value.class]
    end

get_node_value(node) click to toggle source

    # File lib/safe_yaml/syck_resolver.rb, line 30
    def get_node_value(node)
      node.value
    end

native_resolve(node) click to toggle source

    # File lib/safe_yaml/syck_resolver.rb, line 18
    def native_resolve(node)
      node.transform(self.options)
    end

value_is_quoted?(node) click to toggle source

    # File lib/safe_yaml/syck_resolver.rb, line 34
    def value_is_quoted?(node)
      QUOTE_STYLES.include?(node.instance_variable_get(:@style))
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.