ruby

A Basic Case StatementA Shorthand For Rerunning Failed Tests With RSpecAdd Comments To Regex With Free-SpacingAdd Linux As A Bundler PlatformAre They All True?Assert About An Object's Attributes With RSpecAssoc For HashesBlock CommentsBuild HTTP And HTTPS URLsChaining Multiple RSpec Change MatchersCheck Return Status Of Running A Shell CommandClick On Text With CapybaraColorful Output With MiniTestComparing Class Hierarchy RelationshipsComparing Arrays In RSpecConstruct A Constant From A StringCreate an Array of Stringed NumbersCreate a CSV::Table ObjectCreate A Hash From An Array Of ArraysCreate Listing Of All Middleman PagesCreate Named Structs With Struct.newCreate Thumbnail Image For A PDFDefaulting To Frozen String LiteralsDefine A Custom RSpec MatcherDefine A Method On A StructDestructure The First Item From An ArrayDestructuring Arrays In BlocksDisassemble Some CodesDouble Splat To Merge HashesEdit Previous Parts Of The Pry Buffer HistoryEditing Code In PryEncode A String As URL-Safe Base64Enumerate A Pairing Of Every Two Sequential ItemsEvaluating One-Off CommandsExclude Values From An ArrayExpect A Method To Be Called And Actually Call ItFactoryGirl SequencesFailFind The Min And Max With A Single CallFinding The Source of Ruby MethodsGenerate A Signed JWT TokenGenerate Ruby Version And Gemset Files With RVMGet Info About Your RubyGems EnvironmentIdentify Outdated GemsIf You Detect NoneIterate With An Offset IndexInclude Extra Context In A Honeybadger NotifyIns And Outs Of PryInvoking Rake Tasks Multiple TimesIRB Has Built-In Benchmarking With Ruby 3Jump Out Of A Nested Context With Throw/CatchLast Raised Exception In The Call StackLimit SplitList The Running Ruby VersionListing Local VariablesMap With Index Over An ArrayMock Method Chain Calls With RSpecMocking Requests With Partial URIs Using RegexNamed Regex Captures Are Assigned To VariablesNavigate Back In The Browser With CapybaraNext And Previous FloatsOr Operator PrecedenceOverride The Initial Sequence ValueParallel Bundle InstallParse JSON Into An OpenStructParsing A CSV With Quotes In The DataPass A Block To CountPassing Arbitrary Methods As BlocksPassing Arguments To A Rake TaskPattern Match Values From A HashPercent NotationQuestion Mark OperatorRake Only Lists Tasks With DescriptionsRead The First Line From A FileRendering ERBReplace The Current Process With An External CommandRequire Entire Gemfile In Pry SessionRerun Only Failures With RSpecRetry A Block After An ExceptionReturning With Sequelrexml Is A Bundled Gem As Of Ruby 3.0.0Run An Older Version Of BundlerRunning A Single MiniTest ExampleSafe Navigation OperatorScripting With RVMScroll To Top Of Page With CapybaraSet RVM Default RubyShow Public Methods With PrySilence The Output Of A Ruby Statement In PrySingle And Double Quoted String NotationSqueeze Out The Extra SpaceString Interpolation With Instance VariablesSumming CollectionsTurn Key And Value Arrays Into A HashTurning Any Class Into An EnumeratorTurning Things Into HashesUncaught Exceptions In Pryundef_method And The Inheritance HierarchyUninstall Specific Version Of A Ruby GemUnpacking Strings Into BinaryUp And Down With IntegersUpdate The Gemfile Bundled With VersionUse A Case Statement As A Cond StatementUse dotenv In A Non-Rails ProjectUse Tap For Better Test Data SetupUsing BCrypt To Create And Check Hashed PasswordsWhat To Do When You Don't RescueWho Are My Ancestors?Wrap Things In An Array, Even HashesZero Padding

Last updated