Class: Docsmith::ClassConfig
- Inherits:
-
Object
- Object
- Docsmith::ClassConfig
- 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
-
#settings ⇒ Hash
readonly
Raw settings set in this block.
Instance Method Summary collapse
-
#initialize ⇒ ClassConfig
constructor
A new instance of ClassConfig.
Constructor Details
#initialize ⇒ ClassConfig
Returns a new instance of ClassConfig.
13 14 15 |
# File 'lib/docsmith/configuration.rb', line 13 def initialize @settings = {} end |
Instance Attribute Details
#settings ⇒ Hash (readonly)
Returns raw settings set in this block.
11 12 13 |
# File 'lib/docsmith/configuration.rb', line 11 def settings @settings end |