Limiting & Clamping Values in Ruby

  Рет қаралды 1,317

GoRails

GoRails

Күн бұрын

Пікірлер: 4
@oli2016
@oli2016 6 ай бұрын
Really cool. Wrote a shipping rate feature recently which supported specified weight ranges in it, this would have been ideal for that. Oh and by the way, you can use infinity if you only have one limit `clamp(-Float::INFINITY, Float::INFINITY)`
@GorailsTV
@GorailsTV 6 ай бұрын
Someone also mentioned nil works for clamp. Need to try it out!
@CristianMolina
@CristianMolina 6 ай бұрын
Awesome! just checked the docs and seems to support chars, or any comparable. Cool
@ricardomordaunt1101
@ricardomordaunt1101 3 ай бұрын
Thank you..
Performance with Database Indexes
15:31
GoRails
Рет қаралды 3,9 М.
Ruby Basics: Symbols vs Strings
10:14
GoRails
Рет қаралды 10 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 52 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Rate Limiting Requests in Rails 7.2
20:09
GoRails
Рет қаралды 2,6 М.
Better Debugging With The Ruby Debug Gem
26:23
GoRails
Рет қаралды 6 М.
Simple Rails authentication
17:23
Rapid Ruby
Рет қаралды 1,4 М.
Omakase Rubocop Linter / Formatter Rules in Rails 7.2
18:51
GoRails
Рет қаралды 2,3 М.
Defer Job Enqueues After Transaction Commit in Rails 7.2
17:14
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 82 М.
Domain-Driven Design: The Last Explanation You'll Ever Need
21:05
Software Developer Diaries
Рет қаралды 14 М.
How To Use Import Maps with Rails
18:12
GoRails
Рет қаралды 1,9 М.
How to use Dev Containers in Rails 7.2
24:07
GoRails
Рет қаралды 6 М.