Class: Tocer::Configuration::Model
- Inherits:
-
Struct
- Object
- Struct
- Tocer::Configuration::Model
- Defined in:
- lib/tocer/configuration/model.rb
Overview
Defines the content of the configuration for use throughout the gem.
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#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 |
# File 'lib/tocer/configuration/model.rb', line 7 def initialize(**) super self[:patterns] = Array patterns end |
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
6 7 8 |
# File 'lib/tocer/configuration/model.rb', line 6 def label @label end |
#patterns ⇒ Object
Returns the value of attribute patterns
6 7 8 |
# File 'lib/tocer/configuration/model.rb', line 6 def patterns @patterns end |
#root_dir ⇒ Object
Returns the value of attribute root_dir
6 7 8 |
# File 'lib/tocer/configuration/model.rb', line 6 def root_dir @root_dir end |