Class: ConventionalCommits::Configuration::ReleaseConfiguration
- Inherits:
-
Object
- Object
- ConventionalCommits::Configuration::ReleaseConfiguration
- Defined in:
- lib/models/release_configuration.rb
Overview
Configuration for branch name policies
Instance Attribute Summary collapse
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ReleaseConfiguration
constructor
A new instance of ReleaseConfiguration.
Constructor Details
#initialize(options = {}) ⇒ ReleaseConfiguration
Returns a new instance of ReleaseConfiguration.
9 10 11 |
# File 'lib/models/release_configuration.rb', line 9 def initialize( = {}) @rules = (["rules"] || []).map { || ReleaseRule.new() } end |
Instance Attribute Details
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
7 8 9 |
# File 'lib/models/release_configuration.rb', line 7 def rules @rules end |