module Grape::Middleware::DeprecatedOptionsHashAccess
def [](key)
def [](key) Grape.deprecator.warn( "`#{self.class.name}#[]` is deprecated. " \ "Use the named accessor `#{key}` instead." ) public_send(key) if members.include?(key) end
def [](key) Grape.deprecator.warn( "`#{self.class.name}#[]` is deprecated. " \ "Use the named accessor `#{key}` instead." ) public_send(key) if members.include?(key) end