Method: Delorean::BaseModule::BaseClass._sanitize_hash
- Defined in:
- lib/delorean/base.rb
._sanitize_hash(_e) ⇒ Object
178 179 180 181 182 |
# File 'lib/delorean/base.rb', line 178 def self._sanitize_hash(_e) _e.each_with_object({}) do |(k, v), h| h[k] = v if k.is_a?(Integer) || k =~ /\A[a-z][A-Za-z0-9_]*\z/ end end |