0
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

シングルクオートやダブルクオート以外で、文字列を作成することができると、初めて知ったのでまとめてみました。

##シングルクオーテションで囲んだことと同義##


%q! hello,そらじろう!

 'hello,そらじろう'

##ダブルクオーテーションと同義①##


%Q! hello,そらじろう!

"hello,そらじろう"

##ダブルクオーテーションと同義②##

### %!hello,そらじろう!###

"hello,そらじろう"

プロを目指すためのRuby入門

0
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
0
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?