class Inspec::Resources::NginxConfLocation
def initialize(params, parent)
def initialize(params, parent) @parent = parent @params = params || {} end
def to_s
def to_s location = Array(params["_"]).join(" ") # go three levels up: 1. to the server entry, 2. http entry and 3. to the root nginx conf # TODO: fix parent.parent.parent @parent.parent.parent.to_s + ", location #{location.inspect}" end