Class: Partials::Config

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

Overview

Data class representing a C partial to be generated

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(module:, types: [], header: ConfigFileInfo.new, source: ConfigFileInfo.new) ⇒ Config

Returns a new instance of Config.



29
30
31
# File 'lib/ceedling/partials/partials.rb', line 29

def initialize(module:, types: [], header: ConfigFileInfo.new, source: ConfigFileInfo.new)
  super
end

Instance Attribute Details

#headerObject

Returns the value of attribute header

Returns:

  • (Object)

    the current value of header



28
29
30
# File 'lib/ceedling/partials/partials.rb', line 28

def header
  @header
end

#moduleObject

Returns the value of attribute module

Returns:

  • (Object)

    the current value of module



28
29
30
# File 'lib/ceedling/partials/partials.rb', line 28

def module
  @module
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



28
29
30
# File 'lib/ceedling/partials/partials.rb', line 28

def source
  @source
end

#typesObject

Returns the value of attribute types

Returns:

  • (Object)

    the current value of types



28
29
30
# File 'lib/ceedling/partials/partials.rb', line 28

def types
  @types
end