LoginSignup
2
0

More than 1 year has passed since last update.

Rubyメモ

Last updated at Posted at 2020-05-13

概要

Rubyの記法で調査したメモ

前提

Ruby初心者

Rubyの文字列表記法

文字列を正規表現として扱う。

/Ruby正規表現/

※正規表現の詳細は公式にて

文字列に変数の値を含む

:test = "てすと"
puts "いめーじ:#{test}"

変数名と同じ文字列や特殊記号を、文字列として扱う(「.」など)

※「"」で表現する場合、「"\."」とするためURLなどの場合に使用するイメージ。

:test = 'test.com'
puts test
2
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
2
0