Class: Psych::Nodes::Alias (Ruby 2.5.7)
Description: Class : Psych::Nodes::Alias - Ruby 2.5.7

### Home Classes Methods

### In Files

- psych/lib/psych/nodes/alias.rb

### Parent

Psych::Nodes::Node

### Methods

- ::new

### Class/Module Index

Quicksearch

- Kernel
- Object
- Psych
- Psych::BadAlias
- Psych::ClassLoader
- Psych::ClassLoader::Restricted
- Psych::Coder
- Psych::DisallowedClass
- Psych::Emitter
- Psych::Exception
- Psych::Handler
- Psych::Handler::DumperOptions
- Psych::Handlers
- Psych::Handlers::Recorder
- Psych::JSON
- Psych::JSON::Stream
- Psych::JSON::TreeBuilder
- Psych::Nodes
- Psych::Nodes::Alias
- Psych::Nodes::Document
- Psych::Nodes::Mapping
- Psych::Nodes::Node
- Psych::Nodes::Scalar
- Psych::Nodes::Sequence
- Psych::Nodes::Stream
- Psych::Omap
- Psych::Parser
- Psych::Parser::Mark
- Psych::ScalarScanner
- Psych::Set
- Psych::Stream
- Psych::Streaming
- Psych::Streaming::ClassMethods
- Psych::SyntaxError
- Psych::TreeBuilder
- Psych::Visitors
- Psych::Visitors::DepthFirst
- Psych::Visitors::Emitter
- Psych::Visitors::JSONTree
- Psych::Visitors::NoAliasRuby
- Psych::Visitors::ToRuby
- Psych::Visitors::Visitor
- Psych::Visitors::YAMLTree
- Regexp

No matching classes.

# Psych::Nodes::Alias

This class represents a YAML Alias. It points to an `anchor`.

A `Psych::Nodes::Alias` is a terminal node and may have no children.

### Attributes

anchor[RW]

The anchor this alias links to

### Public Class Methods

new(anchor) click to toggle source

Create a new `Alias` that points to an `anchor`

                   # File psych/lib/psych/nodes/alias.rb, line 14
    def initialize anchor
      @anchor = anchor
    end