Sha256: e48f756b61995e7d76262a134003beff6e9c507841030c617cee5e0c4477bfa7

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

# -*- encoding: utf-8 -*-

module GitShizzle::IndexSpecifications
  class File < Base
    def initialize(index)
      assert_numeric index
      @index = index.to_i
    end

    def include?(index)
      @index == index
    end

    def unmatched
      ([] << @index) - matches
    end

    def inspect
      "#{self.class}: #{@index}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git_shizzle-0.2.8 lib/git_shizzle/index_specifications/file.rb
git_shizzle-0.2.6 lib/git_shizzle/index_specifications/file.rb