Class: Tocer::Configuration::Model

Inherits:
Struct
  • Object
show all
Defined in:
lib/tocer/configuration/model.rb

Overview

Defines the content of the configuration for use throughout the gem.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeModel

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

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



6
7
8
# File 'lib/tocer/configuration/model.rb', line 6

def label
  @label
end

#patternsObject

Returns the value of attribute patterns

Returns:

  • (Object)

    the current value of patterns



6
7
8
# File 'lib/tocer/configuration/model.rb', line 6

def patterns
  @patterns
end

#root_dirObject

Returns the value of attribute root_dir

Returns:

  • (Object)

    the current value of root_dir



6
7
8
# File 'lib/tocer/configuration/model.rb', line 6

def root_dir
  @root_dir
end