smortex/yaml-sort

View on GitHub
lib/yaml/sort/value.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Yaml
  module Sort
    class Value
      def initialize
        @comment = []
      end

      def to_s(*)
        comments
      end

      def comments
        @comment.join
      end

      def sort
        self
      end
    end
  end
end