Sha256: 867f370e8c56c47533922024fd0b839dce057dd9c0d4503c4958a15fc49269f4

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

module Reek
  module CLI
    module Command
      #
      # Base class for all commands
      #
      class BaseCommand
        def initialize(options)
          @options = options
        end

        private

        attr_reader :options

        def smell_names
          @smell_names ||= options.smells_to_detect
        end

        def sources
          @sources ||= options.sources
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reek-3.11 lib/reek/cli/command/base_command.rb