lib/puppet-lint/data.rb
# Internal: Find all the Token objects representing the parameter names in
# a resource definition.
#
# resource_tokens - An Array of Token objects that comprise the resource
#                   definition.
#
# Returns an Array of Token objects.
Find all the Token objects representing the parameter names in
a resource definition.

An Array of Token objects that comprise the resource
definition.

Returns an Array of Token objects.
Find all the Token objects representing the parameter names in a resource definition . An Array of Token objects that comprise the resource definition . Returns an Array of Token objects .
def find_resource_param_tokens(resource_tokens)
      resource_tokens.select { |token|
        token.type == :NAME && token.next_code_token.type == :FARROW
      }
    end
def find_resource_param_tokens ( resource_tokens ) resource_tokens . select { | token | token . type == :NAME && token . next_code_token . type == :FARROW } end
Internal: Find all the Token objects representing the parameter names in
a resource definition.
Internal : Find all the Token objects representing the parameter names in a resource definition .
resource_tokens