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
162 163 164 165 166 167 168 169 170 |
# File 'lib/sfn/command_module/base.rb', line 162 def config memoize(:config) do result = super result.fetch(:callbacks, :require, []).each do |c_loader| require c_loader end result end end |