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-6.2.0 lib/attr_extras/utils.rb
attr_extras-6.1.0 lib/attr_extras/utils.rb
attr_extras-5.2.0 lib/attr_extras/utils.rb
attr_extras-5.1.0 lib/attr_extras/utils.rb
attr_extras-5.0.0 lib/attr_extras/utils.rb
attr_extras-4.6.0 lib/attr_extras/utils.rb
attr_extras-4.5.0 lib/attr_extras/utils.rb
attr_extras-4.4.0 lib/attr_extras/utils.rb
attr_extras-4.3.0 lib/attr_extras/utils.rb
attr_extras-4.2.0 lib/attr_extras/utils.rb
attr_extras-4.1.0 lib/attr_extras/utils.rb
attr_extras-4.0.0 lib/attr_extras/utils.rb
attr_extras-3.2.0 lib/attr_extras/utils.rb
attr_extras-3.1.0 lib/attr_extras/utils.rb
attr_extras-3.0.0 lib/attr_extras/utils.rb
attr_extras-2.3.0 lib/attr_extras/utils.rb
attr_extras-2.2.3 lib/attr_extras/utils.rb
attr_extras-2.2.2 lib/attr_extras/utils.rb
attr_extras-2.2.1 lib/attr_extras/utils.rb
attr_extras-2.2.0 lib/attr_extras/utils.rb