facets icon indicating copy to clipboard operation
facets copied to clipboard

Ruby Facets

Results 49 facets issues
Sort by recently updated
recently updated
newest added

I use `Enumerable#map_by` a lot, it's a great abstraction because, more often than not, `Enumerable#group_by` falls too short. However, there are a couple of closely related problems with its implementation...

bug

I am considering adding the method `alias_class_method` to the Module class. However, it seems wasteful to have to add a special method for this, just as it seems wasteful for...

feedback

``` ruby class Array # Index operator. # # a = [:a, :b, :c] # (a/1) #=> :a alias_method :/, :[] end ``` Along time ago WhyTheLuckyStiff had defined this...

One of Sean's extensions is: ``` ruby class Array # Get the index of the first matching element relative to another index in an # array. Starts counting from the...

I'm not sure whether `Shellwords#escape` should do this or not. If it should then I also suggest to write in `#alt_escape`'s doc that it does not escape "$", "*" and...

Consider deep_merge (https://github.com/danielsdeleo/deep_merge) See how it compares to Facets Hash#deep_merge. See how it compares to #weave, too. Note, this was suggested by Steve Midgley two years ago!

Kernel#deep_copy does not work for instances of anonymous classes.

https://rubyworks.github.com/facets/learn.html

Typo: `exmamples` => `examples` ![image](https://github.com/rubyworks/facets/assets/11419017/e4abb0f1-b95c-4fc2-b689-a5e72e67f225)