Class: Wallaby::LookupContextWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/services/wallaby/lookup_context_wrapper.rb

Defined Under Namespace

Classes: BlankTemplate

Instance Method Summary collapse

Constructor Details

#initialize(lookup_context) ⇒ LookupContextWrapper

Returns a new instance of LookupContextWrapper.



7
8
9
# File 'lib/services/wallaby/lookup_context_wrapper.rb', line 7

def initialize(lookup_context)
  @lookup_context = lookup_context
end

Instance Method Details

#find_template(*args) ⇒ Object



11
12
13
14
15
16
# File 'lib/services/wallaby/lookup_context_wrapper.rb', line 11

def find_template(*args)
  key = args.join '/'
  caching key do
    @lookup_context.find_template *args
  end
end