Class: Pragmater::Configuration::Model
- Inherits:
-
Struct
- Object
- Struct
- Pragmater::Configuration::Model
- Defined in:
- lib/pragmater/configuration/model.rb
Overview
Defines the content of the configuration for use throughout the gem.
Instance Attribute Summary collapse
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#patterns ⇒ Object
Returns the value of attribute patterns.
-
#root_dir ⇒ Object
Returns the value of attribute root_dir.
Instance Method Summary collapse
-
#initialize ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize ⇒ Model
Returns a new instance of Model.
7 8 9 10 11 |
# File 'lib/pragmater/configuration/model.rb', line 7 def initialize(**) super self[:comments] = Array comments self[:patterns] = Array patterns end |
Instance Attribute Details
#comments ⇒ Object
Returns the value of attribute comments
6 7 8 |
# File 'lib/pragmater/configuration/model.rb', line 6 def comments @comments end |
#patterns ⇒ Object
Returns the value of attribute patterns
6 7 8 |
# File 'lib/pragmater/configuration/model.rb', line 6 def patterns @patterns end |
#root_dir ⇒ Object
Returns the value of attribute root_dir
6 7 8 |
# File 'lib/pragmater/configuration/model.rb', line 6 def root_dir @root_dir end |