Class: Gitki::Attachment
- Inherits:
-
Object
- Object
- Gitki::Attachment
- Defined in:
- lib/gitki.rb
Class Attribute Summary collapse
-
.dir ⇒ Object
readonly
Returns the value of attribute dir.
Class Method Summary collapse
Class Attribute Details
.dir ⇒ Object (readonly)
Returns the value of attribute dir.
102 103 104 |
# File 'lib/gitki.rb', line 102 def dir @dir end |
Class Method Details
.find(name) ⇒ Object
107 108 109 |
# File 'lib/gitki.rb', line 107 def find(name) store[store_path(name)] end |
.setup(dir) ⇒ Object
103 104 105 |
# File 'lib/gitki.rb', line 103 def setup(dir) @dir = dir end |
.store_path(name) ⇒ Object
111 112 113 |
# File 'lib/gitki.rb', line 111 def store_path(name) File.join(dir, name) end |