Method: Sfn::CommandModule::Base::InstanceMethods#config
- Defined in:
- lib/sfn/command_module/base.rb
#config ⇒ Smash
Note:
callback requires are also loaded here
Override config method to memoize the result allowing for modifications to the configuration during runtime
159 160 161 162 163 164 165 166 167 |
# File 'lib/sfn/command_module/base.rb', line 159 def config memoize(:config) do result = super result.fetch(:callbacks, :require, []).each do |c_loader| require c_loader end result end end |