Class: BranchSet
- Array
- BranchSet
Included Modules
Attributes
Instance Attributes
repository | [RW] | public |
Sets the attribute repository. |
---|---|---|---|
user | [RW] | public |
Sets the attribute user. |
Public Visibility
Public Instance Method Summary
#find(name) |
Takes a name, returns a branch if it exists. |
---|
Public Instance Method Details
find
public
find(name)
Takes a name, returns a branch if it exists
[View source]
6 7 8 9 10 |
# File 'lib/octopi/branch_set.rb', line 6 def find(name) branch = detect { |b| b.name == name } raise NotFound, Branch if branch.nil? branch end |