lab42_core

Ruby Core Module Extensions (in the spirit of lab419/core)

Dir

  Dir.files "**/*" do | partial_path, full_path |
  end

Enumerable

  enum.grep2 expr # ===>
  enum.partition{ |ele| expr === ele }

Hash

  {a: 42, b: 43}.only :a, :c # ===> {a: 42}