OOZOU
與我們聯繫
Back to TILToday I Learned

ruby

12 notes on ruby from the OOZOU team.

all topicsshell 30ruby on rails 22ruby 12macos 10vim 7figma 4cli 3javascript 3heroku 1elixir 1
rubyApril 30, 2021

Allow pasting multiline ruby blocks in Pry when using leading dot notation

We use leading dot notation a lot now e.g.

rubyOctober 14, 2020

Heredoc without interpolation

Sometimes you want to use Ruby's Heredoc without interpolation ('#{....}'). You can do this by adding single dashes around your keyword:

rubyOctober 13, 2020

Automagical Intermediate-level Hashtables in Ruby

All intermediate-level hashtables will be created automagically

rubyOctober 13, 2020

Change Ruby version for single command with rbenv

You can switch Ruby version temporarily with rbenv local

rubyOctober 13, 2020

Change VS Code Go to definition to Cmd+Click

Just open your user settings JSON file and use this option:

rubyOctober 13, 2020

Improve Bundler performance

Level up your bundler performance by running bundler tasks concurrently in jobs:

rubyOctober 13, 2020

optional relation + RSpec w/shoulda-matchers

User 1 - 0..1 Laptop

rubyOctober 13, 2020

Remove ruby 2.6 bundled bundler

Generating a rails 6 app with ruby 2.6+ when you have bundler v2 installed creates unusable binstubs. If you are seeing this error You must use Bundler 2 or greater with this lockfile. you can remove…

rubyOctober 13, 2020

Run rubocop against your current branch

Run rubocop against your current branch

rubyOctober 13, 2020

Run rubocop before commit

Git hooks are super powerful for automating tasks and enforcing coding standards in a Git repository. One common use case for Git hooks is to run automated tests and code analysis tools before…

rubyOctober 13, 2020

Suppress rspec warnings

$ RUBYOPT=W0 bundle exec rspec spec/ ...

rubyOctober 13, 2020

You can use FactoryBot for non ActiveRecord models

You can use FactoryBot's initialize\with* method to initialize an object any way you like which allows you to factorize any of your objects at will

有專案構想嗎?

我們很樂意聆聽您正在打造的產品。

開始對話hello@oozou.com
OOZOU Logo

曼谷 · 新加坡 · 香港

X
Facebook
Instagram
LinkedIn

服務

  • Web 開發
  • AI 與生成式 AI 解決方案
  • 行動應用程式開發
  • 資料分析與工程
  • UI/UX 設計與產品設計
  • 數位轉型

公司

  • 關於我們
  • 職涯
  • 部落格
  • 白皮書
  • 案例研究
  • Today I Learned
  • 聯繫我們

更多

  • 產業
  • 索取報價
  • 合作夥伴網絡
© 2026 OOZOU. 版權所有。
隱私政策行為準則反賄賂反貪腐政策