返回顶部

收藏

General Delimited Strings

更多
# Create strings is with general delimited strings
# Strings are all preceded by a % and then followed by a matched pair of delimiter characters, such as !, {, or [ (must be nonalphanumeric). 
# The string is embedded between the delimiters. 

comedy = %!this is a test!
history = %[this is a test]
tragedy = %(this is a test)

标签:Ruby,String

收藏

0人收藏

支持

0

反对

0

发表评论