Method: Inspec::Attribute#ruby_var_identifier

Defined in:
lib/inspec/objects/attribute.rb

#ruby_var_identifierObject



51
52
53
# File 'lib/inspec/objects/attribute.rb', line 51

def ruby_var_identifier
  @opts[:identifier] || 'attr_' + @name.downcase.strip.gsub(/\s+/, '-').gsub(/[^\w-]/, '')
end