ruby 소소한 tip
the simple way if check value is null object&.spouse&.name == object.spouse.name if object && object.spouse class 2, "name"=>"1"}, {"count"=>2, "hit"=>1, "name"=>"1"}, {"count"=>1, "hit"=>5, "name"=>"1"} ] # sort sorted_arr = arr.sort_by {|data| [data["count"], data["hit"]]} 결과 [{"count"=>1, "hit"=>5, "name"=>"1"}, {"count"=>2, "hit"=>1, "name"=>"1"}, {"count"=>2, "hit"=>2, "name"=>"1"}] it'..
Ruby
2023. 6. 20. 23:16
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Encoding
- 이펙티브자바
- 사고..
- 이벤트스토밍
- annotation
- point
- 암호화
- ruby
- ActiveAdmin
- 코테 log
- SHA
- Lombok
- SQL 전문가 가이드
- TroubleShooting
- Java
- Spring-Boot
- aws
- effective-java
- WebClient
- 실용주의
- 메모리 릭
- gitignore
- IntelliJ
- sort algorithm
- Git
- ASCII
- fetchResults
- Generic
- querydsl
- DesignSystem
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
글 보관함