型名 | リテラル表記名 | 意味 |
---|---|---|
integer | 234 | 整数 |
Float | 3.14159 | 浮動小数点 |
String | "Hello World!" | 文字列 |
Array | [1,2,3,4] | 配列 |
Hash | {"Lemon" => 100, "Orange" => 150} | ハッシュ |
Range | 1..10 | 範囲 |
Symbol | data[:name] | シンボル |
Regexp | /\A[ぁ-んァ-ン一-龥]/ | 正規表現 |
NilClass | nil | 何もない |
TrueClass | true | 真 |
FalseClass | false | 疑 |
More than 3 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme