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
ruby30 เมษายน 2564

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

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

ruby14 ตุลาคม 2563

Heredoc without interpolation

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

ruby13 ตุลาคม 2563

Automagical Intermediate-level Hashtables in Ruby

All intermediate-level hashtables will be created automagically

ruby13 ตุลาคม 2563

Change Ruby version for single command with rbenv

You can switch Ruby version temporarily with rbenv local

ruby13 ตุลาคม 2563

Change VS Code Go to definition to Cmd+Click

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

ruby13 ตุลาคม 2563

Improve Bundler performance

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

ruby13 ตุลาคม 2563

optional relation + RSpec w/shoulda-matchers

User 1 - 0..1 Laptop

ruby13 ตุลาคม 2563

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…

ruby13 ตุลาคม 2563

Run rubocop against your current branch

Run rubocop against your current branch

ruby13 ตุลาคม 2563

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…

ruby13 ตุลาคม 2563

Suppress rspec warnings

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

ruby13 ตุลาคม 2563

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

บริการ

  • พัฒนาเว็บ
  • AI และ Generative AI
  • พัฒนาแอปมือถือ
  • การวิเคราะห์และวิศวกรรมข้อมูล
  • ออกแบบ UI/UX และผลิตภัณฑ์
  • การเปลี่ยนแปลงทางดิจิทัล

บริษัท

  • เกี่ยวกับเรา
  • ร่วมงานกับเรา
  • บล็อก
  • เอกสารวิชาการ
  • กรณีศึกษา
  • Today I Learned
  • ติดต่อเรา

เพิ่มเติม

  • อุตสาหกรรม
  • ขอใบเสนอราคา
  • เครือข่ายพันธมิตร
© 2026 OOZOU สงวนลิขสิทธิ์
นโยบายความเป็นส่วนตัวจรรยาบรรณนโยบาย ABAC