Class: Toys::Utils::GitCache::SourceInfo

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
core-docs/toys/utils/git_cache.rb

Overview

Defined in the toys-core gem

Information about shared source files provided from the cache.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#git_pathString (readonly)

The path within the git repo

Returns:

  • (String)


186
187
188
# File 'core-docs/toys/utils/git_cache.rb', line 186

def git_path
  @git_path
end

#last_accessedTime (readonly)

The timestamp when this ref was last accessed

Returns:

  • (Time)


200
201
202
# File 'core-docs/toys/utils/git_cache.rb', line 200

def last_accessed
  @last_accessed
end

#shaString (readonly)

The git sha the source comes from

Returns:

  • (String)


179
180
181
# File 'core-docs/toys/utils/git_cache.rb', line 179

def sha
  @sha
end

#sourceString (readonly)

The path to the source file or directory

Returns:

  • (String)


193
194
195
# File 'core-docs/toys/utils/git_cache.rb', line 193

def source
  @source
end

Instance Method Details

#<=>(other) ⇒ Integer

Comparison function

Parameters:

Returns:

  • (Integer)


217
218
219
# File 'core-docs/toys/utils/git_cache.rb', line 217

def <=>(other)
  # Source available in the toys-core gem
end

#to_hHash

Convert this SourceInfo to a hash suitable for JSON output

Returns:

  • (Hash)


207
208
209
# File 'core-docs/toys/utils/git_cache.rb', line 207

def to_h
  # Source available in the toys-core gem
end