Class: Object (Ruby 2.2.2)
Description: Class : Object - Ruby 2.2.2

- Home
- Core 2.2.2
- Std-lib 2.2.2
- Downloads

Support for the Ruby 2.2 series has ended. See here for reference.

### Home Classes Methods

### In Files

- psych/lib/psych/core_ext.rb
- psych/lib/psych/deprecated.rb

### Parent

BasicObject

### Methods

- ::yaml_tag
- #psych_to_yaml
- #to_yaml

### Class/Module Index

Quicksearch

- Kernel
- Module
- 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.

# Object

### Public Class Methods

yaml_tag(url) click to toggle source

                   # File psych/lib/psych/core_ext.rb, line 2
    def self.yaml_tag url
      Psych.add_tag(url, self)
    end

### Public Instance Methods

to_yaml(options = {}) click to toggle source

Convert an object to YAML. See Psych.dump for more information on the available `options`.

                   # File psych/lib/psych/core_ext.rb, line 13
    def psych_to_yaml options = {}
      Psych.dump self, options
    end

Also aliased as: to_yaml
to_yaml(options = {}) click to toggle source
Alias for: psych_to_yaml