Class: Terraformer::Normalizer
- Inherits:
-
Object
- Object
- Terraformer::Normalizer
- Defined in:
- lib/terraformer/normalizer.rb
Class Method Summary collapse
Class Method Details
.module_name(name) ⇒ Object
4 5 6 |
# File 'lib/terraformer/normalizer.rb', line 4 def module_name(name) "#{name.gsub(/[^a-zA-Z0-9_]/, "_")}_#{SecureRandom.hex(4)}".gsub(/_+/, '_') end |