Module: AttrExtras::Utils

Defined in:
lib/attr_extras/utils.rb

Class Method Summary collapse

Class Method Details

.flat_names(names) ⇒ Object


2
3
4
# File 'lib/attr_extras/utils.rb', line 2

def self.flat_names(names)
  names.flatten.map { |x| x.to_s.sub(/!\z/, "") }
end