Skip to content

Commit ac5a69b

Browse files
committed
(aca:rooms) add docs
1 parent 9875252 commit ac5a69b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/aca/rooms/component_manager.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def load(component)
127127
::Aca::Rooms::Components.const_set component, Module.new
128128
end
129129

130+
# Inject a `setting` class method that pushes back into settings
131+
# here via a closure. This enables any settings used by the
132+
# component to be declared as `setting key: <default>`.
130133
mod.define_singleton_method :setting do |hash|
131134
settings.merge! hash do |key, _, _|
132135
raise "\"#{key}\" declared multiple times in #{fqn}"

0 commit comments

Comments
 (0)