Exception: NoPullRequestError
- Inherits:
-
StandardError
- Object
- StandardError
- NoPullRequestError
- Defined in:
- lib/rake_github/tasks/pull_requests/merge.rb
Instance Attribute Summary collapse
-
#branch_name ⇒ Object
readonly
Returns the value of attribute branch_name.
Instance Method Summary collapse
-
#initialize(branch_name) ⇒ NoPullRequestError
constructor
A new instance of NoPullRequestError.
- #message ⇒ Object
Constructor Details
#initialize(branch_name) ⇒ NoPullRequestError
Returns a new instance of NoPullRequestError.
43 44 45 |
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 43 def initialize(branch_name) @branch_name = branch_name end |
Instance Attribute Details
#branch_name ⇒ Object (readonly)
Returns the value of attribute branch_name.
42 43 44 |
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 42 def branch_name @branch_name end |
Instance Method Details
#message ⇒ Object
47 48 49 |
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 47 def "No pull request associated with branch %s" % branch_name end |