回答編集履歴

1

2017/04/05 05:46

投稿

moke
moke

スコア2241

test CHANGED
@@ -46,9 +46,9 @@
46
46
 
47
47
  5 かえって混乱を招きますが===だとこういう面白いことが起こります。
48
48
 
49
- "文字列".class===String => false
49
+ "文字列"===String => false
50
50
 
51
- String==="文字列".class => true
51
+ String==="文字列" => true
52
52
 
53
53
 
54
54
 
@@ -66,7 +66,7 @@
66
66
 
67
67
  def hoge_helper(model)
68
68
 
69
- case model.class
69
+ case model
70
70
 
71
71
  when Fixnum
72
72