Exception: RakeGithub::Exceptions::NoPullRequest
- Inherits:
-
StandardError
- Object
- StandardError
- RakeGithub::Exceptions::NoPullRequest
- Defined in:
- lib/rake_github/exceptions/no_pull_request.rb
Instance Attribute Summary collapse
-
#branch_name ⇒ Object
readonly
Returns the value of attribute branch_name.
Instance Method Summary collapse
-
#initialize(branch_name) ⇒ NoPullRequest
constructor
A new instance of NoPullRequest.
Constructor Details
#initialize(branch_name) ⇒ NoPullRequest
Returns a new instance of NoPullRequest.
8 9 10 11 12 |
# File 'lib/rake_github/exceptions/no_pull_request.rb', line 8 def initialize(branch_name) @branch_name = branch_name super(format('No pull request associated with branch %s', branch_name)) end |
Instance Attribute Details
#branch_name ⇒ Object (readonly)
Returns the value of attribute branch_name.
6 7 8 |
# File 'lib/rake_github/exceptions/no_pull_request.rb', line 6 def branch_name @branch_name end |