Class: Docsmith::ClassConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/docsmith/configuration.rb

Overview

DSL object for per-class docsmith_config blocks. Each method call stores a key in @settings. Resolution against global config happens at read time via Configuration.resolve.

Constant Summary collapse

KEYS =
%i[content_field content_type auto_save debounce max_versions content_extractor].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClassConfig

Returns a new instance of ClassConfig.



13
14
15
# File 'lib/docsmith/configuration.rb', line 13

def initialize
  @settings = {}
end

Instance Attribute Details

#settingsHash (readonly)

Returns raw settings set in this block.

Returns:

  • (Hash)

    raw settings set in this block



11
12
13
# File 'lib/docsmith/configuration.rb', line 11

def settings
  @settings
end