Method: Inspec::Input#ruby_var_identifier
- Defined in:
- lib/inspec/objects/input.rb
#ruby_var_identifier ⇒ Object
321 322 323 |
# File 'lib/inspec/objects/input.rb', line 321 def ruby_var_identifier identifier || "attr_" + name.downcase.strip.gsub(/\s+/, "-").gsub(/[^\w-]/, "") end |