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
186 187 188 |
# File 'core-docs/toys/utils/git_cache.rb', line 186 def git_path @git_path end |
#last_accessed ⇒ Time (readonly)
The timestamp when this ref was last accessed
200 201 202 |
# File 'core-docs/toys/utils/git_cache.rb', line 200 def last_accessed @last_accessed end |
#sha ⇒ String (readonly)
The git sha the source comes from
179 180 181 |
# File 'core-docs/toys/utils/git_cache.rb', line 179 def sha @sha end |
#source ⇒ String (readonly)
The path to the source file or directory
193 194 195 |
# File 'core-docs/toys/utils/git_cache.rb', line 193 def source @source end |
Instance Method Details
#<=>(other) ⇒ Integer
Comparison function
217 218 219 |
# File 'core-docs/toys/utils/git_cache.rb', line 217 def <=>(other) # Source available in the toys-core gem end |
#to_h ⇒ Hash
Convert this SourceInfo to a hash suitable for JSON output
207 208 209 |
# File 'core-docs/toys/utils/git_cache.rb', line 207 def to_h # Source available in the toys-core gem end |