Sha256: 6533a6050fda1bd2bd29a21cba49b0959d4c2ce2d3a1f64c73bebc93dd3aba52

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

module AnnotateRb
  module ModelAnnotator
    # Plain old Ruby object for holding the differences
    class AnnotationDiff
      attr_reader :current_columns, :new_columns

      def initialize(current_columns, new_columns)
        @current_columns = current_columns.dup.freeze
        @new_columns = new_columns.dup.freeze
      end

      def changed?
        @changed ||= @current_columns != @new_columns
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
annotaterb-4.1.1 lib/annotate_rb/model_annotator/annotation_diff.rb