質問編集履歴

1

インデントとendを追記

2018/06/08 23:37

投稿

og33
og33

スコア14

test CHANGED
File without changes
test CHANGED
@@ -4,29 +4,31 @@
4
4
 
5
5
  ```
6
6
 
7
- if Time.zone.today.sunday?
7
+ if Time.zone.today.sunday?
8
8
 
9
- duty = "資源ごみ"
9
+ duty = "資源ごみ"
10
10
 
11
- toban = Tobanhyo.where(role: 1)
11
+ toban = Tobanhyo.where(role: 1)
12
12
 
13
- elsif Time.zone.today.tuesday?
13
+ elsif Time.zone.today.tuesday?
14
14
 
15
- duty = "火曜のゴミ"
15
+ duty = "火曜のゴミ"
16
16
 
17
- toban = Tobanhyo.where(role: 2)
17
+ toban = Tobanhyo.where(role: 2)
18
18
 
19
- elsif Time.zone.today.wednesday?
19
+ elsif Time.zone.today.wednesday?
20
20
 
21
- duty = "木曜日のゴミ"
21
+ duty = "木曜日のゴミ"
22
22
 
23
- toban = Tobanhyo.where(role: 3)
23
+ toban = Tobanhyo.where(role: 3)
24
24
 
25
- elsif Time.zone.today.Thursday? || Time.zone.today.friday?
25
+ elsif Time.zone.today.Thursday? || Time.zone.today.friday?
26
26
 
27
- duty = "燃えるゴミ"
27
+ duty = "燃えるゴミ"
28
28
 
29
- toban = Tobanhyo.where(role: 4)
29
+ toban = Tobanhyo.where(role: 4)
30
+
31
+ end
30
32
 
31
33
  ```
32
34