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
44 45 46 47 |
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 44 def initialize(branch_name) super() @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
49 50 51 |
# File 'lib/rake_github/tasks/pull_requests/merge.rb', line 49 def format('No pull request associated with branch %s', branch_name) end |