Class: PartializerConfig::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/ceedling/partials/partializer_config.rb

Overview

Top-level Partial configuration for a single C module.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(module:, tests: PartializerConfig::PartialFunctions.new, mocks: PartializerConfig::PartialFunctions.new, header: Partials::ConfigFileInfo.new, source: Partials::ConfigFileInfo.new) ⇒ Config

Returns a new instance of Config.



61
62
63
64
65
66
67
# File 'lib/ceedling/partials/partializer_config.rb', line 61

def initialize(module:,
               tests:  PartializerConfig::PartialFunctions.new,
               mocks:  PartializerConfig::PartialFunctions.new,
               header: Partials::ConfigFileInfo.new,
               source: Partials::ConfigFileInfo.new)
  super
end

Instance Attribute Details

#headerObject

Returns the value of attribute header

Returns:

  • (Object)

    the current value of header



60
61
62
# File 'lib/ceedling/partials/partializer_config.rb', line 60

def header
  @header
end

#mocksObject

Returns the value of attribute mocks

Returns:

  • (Object)

    the current value of mocks



60
61
62
# File 'lib/ceedling/partials/partializer_config.rb', line 60

def mocks
  @mocks
end

#moduleObject

Returns the value of attribute module

Returns:

  • (Object)

    the current value of module



60
61
62
# File 'lib/ceedling/partials/partializer_config.rb', line 60

def module
  @module
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



60
61
62
# File 'lib/ceedling/partials/partializer_config.rb', line 60

def source
  @source
end

#testsObject

Returns the value of attribute tests

Returns:

  • (Object)

    the current value of tests



60
61
62
# File 'lib/ceedling/partials/partializer_config.rb', line 60

def tests
  @tests
end