Sha256: 52b30ff68b676a853538f761bde8c3b7959f254cdcde46109a22ce2b87f61eb3

Contents?: true

Size: 221 Bytes

Versions: 9

Compression:

Stored size: 221 Bytes

Contents

class Object
  # An identity method that provides access to an object's
  # <tt>self</tt>.
  #  [1,2,3,4,5,1,2,2,3].group_by(&:it)
  #  #=> {1=>[1, 1], 2=>[2, 2, 2], 3=>[3, 3], 4=>[4], 5=>[5]}
  def it
    self
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shenanigans-1.0.13 lib/shenanigans/object/it.rb
shenanigans-1.0.11 lib/shenanigans/object/it.rb
shenanigans-1.0.10 lib/shenanigans/object/it.rb
shenanigans-1.0.9 lib/shenanigans/object/it.rb
shenanigans-1.0.8 lib/shenanigans/object/it.rb
shenanigans-1.0.7 lib/shenanigans/object/it.rb
shenanigans-1.0.6 lib/shenanigans/object/it.rb
shenanigans-1.0.5 lib/shenanigans/object/it.rb
shenanigans-1.0.4 lib/shenanigans/object/it.rb