class GitHooks::Repository::DiffIndexEntry::FileState

Attributes

mode[R]
path[R]
sha[R]

Public Class Methods

new(mode, sha, path) click to toggle source
# File lib/githooks/repository/diff_index_entry.rb, line 67
def initialize(mode, sha, path)
  @mode, @sha, @path = mode, sha, path
end

Public Instance Methods

inspect() click to toggle source
# File lib/githooks/repository/diff_index_entry.rb, line 71
def inspect
  "#<#{self.class.name.split('::').last} mode=#{mode.to_s(8)} path=#{path.to_s.inspect} sha=#{sha.inspect}>"
end
to_path() click to toggle source
# File lib/githooks/repository/diff_index_entry.rb, line 75
def to_path
  Pathname.new(@path)
end