Class: Dependabot::Config::UpdateConfig::CommitMessageOptions
- Inherits:
-
Object
- Object
- Dependabot::Config::UpdateConfig::CommitMessageOptions
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/config/update_config.rb
Instance Attribute Summary collapse
-
#include ⇒ Object
readonly
Returns the value of attribute include.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#prefix_development ⇒ Object
readonly
Returns the value of attribute prefix_development.
Instance Method Summary collapse
- #include_scope? ⇒ Boolean
-
#initialize(prefix:, prefix_development:, include:) ⇒ CommitMessageOptions
constructor
A new instance of CommitMessageOptions.
- #to_h ⇒ Object
Constructor Details
#initialize(prefix:, prefix_development:, include:) ⇒ CommitMessageOptions
Returns a new instance of CommitMessageOptions.
66 67 68 69 70 |
# File 'lib/dependabot/config/update_config.rb', line 66 def initialize(prefix:, prefix_development:, include:) @prefix = prefix @prefix_development = prefix_development @include = include end |
Instance Attribute Details
#include ⇒ Object (readonly)
Returns the value of attribute include.
64 65 66 |
# File 'lib/dependabot/config/update_config.rb', line 64 def include @include end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
64 65 66 |
# File 'lib/dependabot/config/update_config.rb', line 64 def prefix @prefix end |
#prefix_development ⇒ Object (readonly)
Returns the value of attribute prefix_development.
64 65 66 |
# File 'lib/dependabot/config/update_config.rb', line 64 def prefix_development @prefix_development end |
Instance Method Details
#include_scope? ⇒ Boolean
72 73 74 |
# File 'lib/dependabot/config/update_config.rb', line 72 def include_scope? @include == "scope" end |
#to_h ⇒ Object
76 77 78 79 80 81 82 |
# File 'lib/dependabot/config/update_config.rb', line 76 def to_h { prefix: @prefix, prefix_development: @prefix_development, include_scope: include_scope? } end |