Method: Inspec::Attribute#ruby_var_identifier
- Defined in:
- lib/inspec/objects/attribute.rb
#ruby_var_identifier ⇒ Object
32 33 34 |
# File 'lib/inspec/objects/attribute.rb', line 32 def ruby_var_identifier 'attr_' + @name.downcase.strip.gsub(/\s+/, '-').gsub(/[^\w-]/, '') end |