Class: Quby::Answers::Repos::DiskRepo

Inherits:
Base
  • Object
show all
Defined in:
lib/quby/answers/repos/disk_repo.rb

Defined Under Namespace

Classes: Record

Instance Attribute Summary collapse

Instance Method Summary collapse

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).expand_path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



13
14
15
# File 'lib/quby/answers/repos/disk_repo.rb', line 13

def path
  @path
end