class Focus::ContextualConfiguration

A small wrapper to an Action's context. If an attribute is defined in the context, it will be returned. Otherwise, a lookup within Focus::Config will take place.

Attributes

context[R]

Public Class Methods

new(context) click to toggle source
# File lib/focus/action.rb, line 13
def initialize(context)
  @context = context
end

Public Instance Methods

method_missing(m, *args, &block) click to toggle source
# File lib/focus/action.rb, line 17
def method_missing(m, *args, &block) # rubocop:disable MethodMissing
  context.send(m) || Config.send(m, *args, &block)
end