# File lib/chef/node/attribute.rb, line 225 def index(value) index = self.find do |h| value == h[1] end index.first if index.is_a? Array || nil end