Class: Repository

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ Repository

Returns a new instance of Repository.



388
389
390
391
# File 'lib/commands/plugin.rb', line 388

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

Instance Attribute Details

#pluginsObject (readonly)

Returns the value of attribute plugins.



386
387
388
# File 'lib/commands/plugin.rb', line 386

def plugins
  @plugins
end

#uriObject (readonly)

Returns the value of attribute uri.



386
387
388
# File 'lib/commands/plugin.rb', line 386

def uri
  @uri
end

Instance Method Details

#each(&block) ⇒ Object



407
408
409
# File 'lib/commands/plugin.rb', line 407

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