Class: BranchSet

  • Array
    • BranchSet

Included Modules

Octopi

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

Meta Tags

Raises:

[NotFound]
[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
Generated on Friday, July 31 2009 at 05:01:55 PM by YARD 0.2.3.2 (ruby-1.8.6).