This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 整数 | |
p 10.class | |
# 少数 | |
p 1.5.class | |
# 有理数 | |
p 3r.class | |
# 複素数 | |
p (0.3 - 0.5i).class | |
# 4つのクラスの親クラスはNumeric |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p "1".to_s | |
p 1.to_s | |
p nil.to_s | |
p 10.to_s(16) | |
# コメント | |
=begin | |
複数行コメント |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>カレーのレシピ</title> | |
</head> | |
<body> | |
<article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
カレーのレシピ | |
誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。 | |
ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります。 | |
レシピの作者 | |
山田サチ子さん | |
材料 ( 8皿分 ) |