Sha256: 3e90df61bed79e13704eeadbefdfc9279909aaa16f5f3c56eb0c65e46bf6d47d

Contents?: true

Size: 749 Bytes

Versions: 105

Compression:

Stored size: 749 Bytes

Contents

module Psych
  module JSON
    module YAMLEvents # :nodoc:
      def start_document version, tag_directives, implicit
        super(version, tag_directives, !streaming?)
      end

      def end_document implicit_end = !streaming?
        super(implicit_end)
      end

      def start_mapping anchor, tag, implicit, style
        super(anchor, nil, true, Nodes::Mapping::FLOW)
      end

      def start_sequence anchor, tag, implicit, style
        super(anchor, nil, true, Nodes::Sequence::FLOW)
      end

      def scalar value, anchor, tag, plain, quoted, style
        if "tag:yaml.org,2002:null" == tag
          super('null', nil, nil, true, false, Nodes::Scalar::PLAIN)
        else
          super
        end
      end
    end
  end
end

Version data entries

105 entries across 77 versions & 6 rubygems

Version Path
sauce_whisk-0.0.3 vendor/psych/lib/psych/json/yaml_events.rb
sauce_whisk-0.0.2 vendor/psych/lib/psych/json/yaml_events.rb
sauce_whisk-0.0.1 vendor/psych/lib/psych/json/yaml_events.rb
psych-1.3.4 lib/psych/json/yaml_events.rb
psych-1.3.3 lib/psych/json/yaml_events.rb