Class: Pragmater::Configuration::Model

Inherits:
Struct
  • Object
show all
Defined in:
lib/pragmater/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
11
# File 'lib/pragmater/configuration/model.rb', line 7

def initialize(**)
  super
  self[:comments] = Array comments
  self[:patterns] = Array patterns
end

Instance Attribute Details

#commentsObject

Returns the value of attribute comments

Returns:

  • (Object)

    the current value of comments



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

def comments
  @comments
end

#patternsObject

Returns the value of attribute patterns

Returns:

  • (Object)

    the current value of patterns



6
7
8
# File 'lib/pragmater/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/pragmater/configuration/model.rb', line 6

def root_dir
  @root_dir
end