Module: Theo::Rails::Helpers
- Defined in:
- lib/theo-rails/helpers.rb
Instance Method Summary collapse
Instance Method Details
#inject(key) ⇒ Object
13 14 15 |
# File 'lib/theo-rails/helpers.rb', line 13 def inject(key) @theo_context&.[](key) end |
#provide(**args) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/theo-rails/helpers.rb', line 4 def provide(**args) @theo_context ||= {} @theo_context.merge!(args) yield @theo_context.except!(args.keys) end |