Class: Quby::Answers::Repos::DiskRepo
- Defined in:
- lib/quby/answers/repos/disk_repo.rb
Defined Under Namespace
Classes: Record
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ DiskRepo
constructor
A new instance of DiskRepo.
Methods inherited from Base
#all, #create!, #find, #reload, #update!
Constructor Details
#initialize(path) ⇒ DiskRepo
Returns a new instance of DiskRepo.
15 16 17 |
# File 'lib/quby/answers/repos/disk_repo.rb', line 15 def initialize(path) @path = Pathname.new(path). end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
13 14 15 |
# File 'lib/quby/answers/repos/disk_repo.rb', line 13 def path @path end |