質問編集履歴

1

class Word < Stringをclass Stringと訂正

2022/01/24 05:53

投稿

0801Kotetsu09
0801Kotetsu09

スコア4

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
  rails consoleにて
3
3
 
4
4
  ``` 
5
- >> class Word < String 
5
+ >> class String
6
6
  >> def palindrome?
7
7
  >> self == self.reverse  
8
8
  >> end