1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Rubyで利用できる型

Posted at
型名 リテラル表記名 意味
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
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?