Class: Repository
Instance Attribute Summary collapse
-
#plugins ⇒ Object
readonly
Returns the value of attribute plugins.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(uri) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(uri) ⇒ Repository
Returns a new instance of Repository.
406 407 408 409 |
# File 'lib/commands/plugin.rb', line 406 def initialize(uri) @uri = uri.chomp('/') << "/" @plugins = nil end |
Instance Attribute Details
#plugins ⇒ Object (readonly)
Returns the value of attribute plugins.
404 405 406 |
# File 'lib/commands/plugin.rb', line 404 def plugins @plugins end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
404 405 406 |
# File 'lib/commands/plugin.rb', line 404 def uri @uri end |
Instance Method Details
#each(&block) ⇒ Object
425 426 427 |
# File 'lib/commands/plugin.rb', line 425 def each(&block) plugins.each(&block) end |