Sha256: 3cc408cf801d3dd16a44b9eff86661ea8d3ab592ec8505f084da7d6675fb40b2

Contents?: true

Size: 1 KB

Versions: 6552

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true
module Psych
  module Nodes
    ###
    # Represents a YAML stream.  This is the root node for any YAML parse
    # tree.  This node must have one or more child nodes.  The only valid
    # child node for a Psych::Nodes::Stream node is Psych::Nodes::Document.
    class Stream < Psych::Nodes::Node

      # Encodings supported by Psych (and libyaml)

      # Any encoding
      ANY     = Psych::Parser::ANY

      # UTF-8 encoding
      UTF8    = Psych::Parser::UTF8

      # UTF-16LE encoding
      UTF16LE = Psych::Parser::UTF16LE

      # UTF-16BE encoding
      UTF16BE = Psych::Parser::UTF16BE

      # The encoding used for this stream
      attr_accessor :encoding

      ###
      # Create a new Psych::Nodes::Stream node with an +encoding+ that
      # defaults to Psych::Nodes::Stream::UTF8.
      #
      # See also Psych::Handler#start_stream
      def initialize encoding = UTF8
        super()
        @encoding = encoding
      end

      def stream?; true; end
    end
  end
end

Version data entries

6,552 entries across 6,549 versions & 27 rubygems

Version Path
primary_connect_proto-0.3.0 vendor/bundle/ruby/2.6.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
primary_connect_proto-0.2.0 vendor/bundle/ruby/2.6.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
primary_connect_proto-0.1.0 vendor/bundle/ruby/2.6.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
ory-client-0.0.1.alpha30 vendor/bundle/ruby/2.5.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
ory-client-0.0.1.alpha29 vendor/bundle/ruby/2.5.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
primary_connect_proto-0.0.6 vendor/bundle/ruby/2.6.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
ory-client-0.0.1.alpha28 vendor/bundle/ruby/2.5.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
primary_connect_proto-0.0.5 vendor/bundle/ruby/2.6.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
ory-client-0.0.1.alpha27 vendor/bundle/ruby/2.5.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
ory-client-0.0.1.alpha24 vendor/bundle/ruby/2.5.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
primary_connect_proto-0.0.4 vendor/bundle/ruby/2.6.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
primary_connect_proto-0.0.3 vendor/bundle/ruby/2.6.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
ory-client-0.0.1.alpha23 vendor/bundle/ruby/2.5.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
ory-kratos-client-0.8.0.alpha2 vendor/bundle/ruby/2.5.0/gems/psych-4.0.2/lib/psych/nodes/stream.rb
psych-4.0.2-java lib/psych/nodes/stream.rb
psych-4.0.2 lib/psych/nodes/stream.rb
ory-client-0.0.1.alpha21 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/lib/psych/nodes/stream.rb
ory-keto-client-0.7.0.alpha1 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/lib/psych/nodes/stream.rb
ory-keto-client-0.7.0.alpha0 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/lib/psych/nodes/stream.rb
ory-kratos-client-0.7.6.alpha7 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/lib/psych/nodes/stream.rb