可能重复: Understanding Symbols In Ruby What is the colon operator in Ruby? 这是一些代码Rails的教程中,我读给我。 class Post < ActiveRecord::Base
attr_accessible :content, :name, :title
validates :name, :prese
只见代码在The Bash command :(){ :|:& };: will spawn processes to kernel death. Can you explain the syntax?如下用作标识符的函数名 [email protected]$ :(){ :|:& };:
这里结肠。 冒号可以用作标识符吗?