Class: Coherent::Repository

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/plugin/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ Repository

Returns a new instance of Repository.



7
8
9
10
# File 'lib/plugin/repository.rb', line 7

def initialize(uri)
  @uri = uri.chomp('/') << "/"
  @plugins = nil
end

Instance Attribute Details

#pluginsObject (readonly)

Returns the value of attribute plugins.



5
6
7
# File 'lib/plugin/repository.rb', line 5

def plugins
  @plugins
end

#uriObject (readonly)

Returns the value of attribute uri.



5
6
7
# File 'lib/plugin/repository.rb', line 5

def uri
  @uri
end

Instance Method Details

#each(&block) ⇒ Object



26
27
28
# File 'lib/plugin/repository.rb', line 26

def each(&block)
  plugins.each(&block)
end