Sha256: 5933bd9418f2b8674837d210d2e680924d608b48c0db6f04eae4c1630199de8d

Contents?: true

Size: 249 Bytes

Versions: 1

Compression:

Stored size: 249 Bytes

Contents

module Ect

  VERSION = '1.0.0'
end


class Object

  alias inflect tap

  def deflect

    yield(self)
  end
end


module Enumerable

  alias bisect partition

  def dissect

    inject([]) { |a, elt| (a[yield(elt)] ||= []) << elt; a }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ect-1.0.0 lib/ect.rb