Cleaner syntax for writing OR Query in Rails 5, 6. And also add #or support to Rails 3 and 4.
-
Updated
Sep 14, 2024 - Ruby
Cleaner syntax for writing OR Query in Rails 5, 6. And also add #or support to Rails 3 and 4.
Tiny DSL for idiomatic date parsing and formatting in Ruby
Helpers for defining sequences of constants in Ruby using a Go-like syntax
ruby syntax extension: double is {|x| x*2}; fib is memoized {|n| n<2 ? 1 : fib(n-2)+fib(n-1)}
Lambda shorthand: fn{ _1 * 2 } instead of lambda{|x| x*2}
Add a description, image, and links to the syntax-sugar topic page so that developers can more easily learn about it.
To associate your repository with the syntax-sugar topic, visit your repo's landing page and select "manage topics."