Skip to content

Instantly share code, notes, and snippets.

@taea
Last active December 19, 2015 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taea/5916486 to your computer and use it in GitHub Desktop.
Save taea/5916486 to your computer and use it in GitHub Desktop.
リテラル
= "hogeに登録されている\"fuga\", \"piyo\", \"inu\" 等の一覧です。"
= %Q{hogeに登録されている"fuga", "piyo", "inu" 等の一覧です。}
= %Q!hogeに登録されている"fuga", "piyo", "inu" 等の一覧です。!
= %Q(hogeに登録されている"fuga", "piyo", "inu" 等の一覧です。)
http://doc.ruby-lang.org/ja/1.9.3/doc/spec=2fliteral.html#percent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment