... | @@ -6,10 +6,10 @@ Ruby `Range` extensions. In order to comply with new features related to date/ti |
... | @@ -6,10 +6,10 @@ Ruby `Range` extensions. In order to comply with new features related to date/ti |
|
|
|
|
|
A way to get the intersection between 2 ranges, just like: `(5..15) & (10..20) === (10..15)`. See the examples:
|
|
A way to get the intersection between 2 ranges, just like: `(5..15) & (10..20) === (10..15)`. See the examples:
|
|
|
|
|
|

|
|

|
|
|
|
|
|
### `|` or `union`
|
|
### `|` or `union`
|
|
|
|
|
|
A way to concatenate 2 ranges, regardless if they intersect or not. It basically gets the lowest and highest values. Like: `(5..15) | (10..20) === (5..20)`. See the examples:
|
|
A way to concatenate 2 ranges, regardless if they intersect or not. It basically gets the lowest and highest values. Like: `(5..15) | (10..20) === (5..20)`. See the examples:
|
|
|
|
|
|
 |
|
 |
|
|
|
\ No newline at end of file |