Sha256: 49d72bbe214a91dd437c72dcf796c56e084dafc9fce8eac9da18fd2a30b3ef18

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

module RuboCop
  module Git
    class PseudoResource
      attr_reader :patch, :pwd, :file_relative_path

      alias_method :filename, :file_relative_path

      def initialize(file_relative_path, pwd = Dir.pwd)
        @file_relative_path = file_relative_path
        @pwd = pwd
        @patch = ''
      end

      def absolute_path
        filename
        File.join(pwd, filename)
      end

      def status
        'modified'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cs-rubocop-git-0.1.4 lib/rubocop/git/pseudo_resource.rb