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.
42 43 44 |
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 42 def initialize(branch_name) @branch_name = branch_name end |
Instance Attribute Details
#branch_name ⇒ Object (readonly)
Returns the value of attribute branch_name.
41 42 43 |
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 41 def branch_name @branch_name end |
Instance Method Details
#message ⇒ Object
46 47 48 |
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 46 def "No pull request associated with branch %s" % branch_name end |