Sha256: 56c1de1ba9861fd99db5683dc70d7d6c455d395ffbd46d10797641cfb8b47d66

Contents?: true

Size: 384 Bytes

Versions: 6878

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    # Common functionality for checking target rails version.
    module TargetRailsVersion
      def minimum_target_rails_version(version)
        @minimum_target_rails_version = version
      end

      def support_target_rails_version?(version)
        @minimum_target_rails_version <= version
      end
    end
  end
end

Version data entries

6,878 entries across 6,867 versions & 30 rubygems

Version Path
rubocop-0.58.1 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.58.0 lib/rubocop/cop/mixin/target_rails_version.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rubocop-0.57.2/lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.57.2 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.57.1 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.57.0 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.56.0 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.55.0 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.54.0 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.53.0 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.52.1 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.52.0 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.51.0 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.50.0 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.49.1 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.49.0 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.48.1 lib/rubocop/cop/mixin/target_rails_version.rb
rubocop-0.48.0 lib/rubocop/cop/mixin/target_rails_version.rb