Class: Lookbook::EvalResolver

Inherits:
DataResolver show all
Defined in:
lib/lookbook/services/data/resolvers/eval_resolver.rb

Constant Summary collapse

MATCHER =
/(\{\{\s?(.*)\s?\}\})$/
MATCH_INDEX =
2

Instance Attribute Summary

Attributes inherited from DataResolver

#base_dir, #eval_context, #fallback, #file

Instance Method Summary collapse

Methods inherited from DataResolver

#call, #initialize, resolveable?

Methods inherited from Service

call

Constructor Details

This class inherits a constructor from Lookbook::DataResolver

Instance Method Details

#resolve(input) ⇒ Object



6
7
8
# File 'lib/lookbook/services/data/resolvers/eval_resolver.rb', line 6

def resolve(input)
  evaluate(input)
end