回答編集履歴
1
あ
answer
CHANGED
@@ -22,8 +22,8 @@
|
|
22
22
|
なので、"文字列".class==String => ture となります。
|
23
23
|
|
24
24
|
5 かえって混乱を招きますが===だとこういう面白いことが起こります。
|
25
|
-
"文字列"
|
25
|
+
"文字列"===String => false
|
26
|
-
String==="文字列"
|
26
|
+
String==="文字列" => true
|
27
27
|
|
28
28
|
これでnae_stage様の1−3の質問に答えられたと思います。
|
29
29
|
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
```ruby
|
34
34
|
def hoge_helper(model)
|
35
|
-
case model
|
35
|
+
case model
|
36
36
|
when Fixnum
|
37
37
|
スピンボタンがついたテキストボックスを表示
|
38
38
|
when ActiveSupport::TimeWithZone
|