Sha256: 7b37532b7011e1362a075daca4e8d2ddfd3b22ad9e85bcfd03f51153a6bba4fe

Contents?: true

Size: 116 Bytes

Versions: 23

Compression:

Stored size: 116 Bytes

Contents

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
attr_extras-2.1.1 lib/attr_extras/utils.rb
attr_extras-2.1.0 lib/attr_extras/utils.rb
attr_extras-2.0.1 lib/attr_extras/utils.rb