Class: Toys::Utils::GitCache::SourceInfo
- Inherits:
-
Object
- Object
- Toys::Utils::GitCache::SourceInfo
- 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
-
#git_path ⇒ String
readonly
The path within the git repo.
-
#last_accessed ⇒ Time?
readonly
The timestamp when this ref was last accessed.
-
#sha ⇒ String
readonly
The git sha the source comes from.
-
#source ⇒ String
readonly
The path to the source file or directory.
Instance Method Summary collapse
-
#<=>(other) ⇒ Integer
Comparison function.
-
#to_h ⇒ Hash
Convert this SourceInfo to a hash suitable for JSON output.
Instance Attribute Details
#git_path ⇒ String (readonly)
The path within the git repo
335 336 337 |
# File 'core-docs/toys/utils/git_cache.rb', line 335 def git_path @git_path end |
#last_accessed ⇒ Time? (readonly)
The timestamp when this ref was last accessed
349 350 351 |
# File 'core-docs/toys/utils/git_cache.rb', line 349 def last_accessed @last_accessed end |
#sha ⇒ String (readonly)
The git sha the source comes from
328 329 330 |
# File 'core-docs/toys/utils/git_cache.rb', line 328 def sha @sha end |
#source ⇒ String (readonly)
The path to the source file or directory
342 343 344 |
# File 'core-docs/toys/utils/git_cache.rb', line 342 def source @source end |
Instance Method Details
#<=>(other) ⇒ Integer
Comparison function
366 367 368 |
# File 'core-docs/toys/utils/git_cache.rb', line 366 def <=>(other) # Source available in the toys-core gem end |
#to_h ⇒ Hash
Convert this SourceInfo to a hash suitable for JSON output
356 357 358 |
# File 'core-docs/toys/utils/git_cache.rb', line 356 def to_h # Source available in the toys-core gem end |