Module: SnFoil::Context
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/snfoil/context.rb,
lib/snfoil/context/error.rb,
lib/snfoil/context/version.rb,
lib/snfoil/context/structure.rb,
lib/snfoil/context/argument_error.rb
Overview
ActiveSupport::Concern for adding SnFoil Context functionality
Defined Under Namespace
Modules: Structure Classes: ArgumentError, Error
Constant Summary collapse
- VERSION =
'1.2.1'
Instance Method Summary collapse
Instance Method Details
#run_interval(interval, **options) ⇒ Object
55 56 57 58 59 |
# File 'lib/snfoil/context.rb', line 55 def run_interval(interval, **) hooks = self.class.instance_variable_get("@snfoil_#{interval}_hooks") || [] = hooks.reduce() { |opts, hook| run_hook(hook, **opts) } send(interval, **) end |