Module: HttpStub::Server::Stub::Response::Attribute::Interpolator

Defined in:
lib/http_stub/server/stub/response/attribute/interpolator.rb,
lib/http_stub/server/stub/response/attribute/interpolator/headers.rb,
lib/http_stub/server/stub/response/attribute/interpolator/parameters.rb

Defined Under Namespace

Classes: Headers, Parameters

Class Method Summary collapse

Class Method Details

.interpolate(value, request) ⇒ Object



16
17
18
# File 'lib/http_stub/server/stub/response/attribute/interpolator.rb', line 16

def self.interpolate(value, request)
  CHAIN.reduce(value) { |result, interpolator| interpolator.interpolate(result, request) }
end