Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

Ruby Programming/Reference/Objects/Symbol

From Wikibooks, open books for an open world
<Ruby Programming |Reference |Objects

A Ruby symbol is the internal representation of a name. You construct the symbol for a name by preceding the name with a colon. A particular name will always generate the same symbol, regardless of how that name is used within the program.

:Object:myVariable

Other languages call this process "interning," and call symbols "atoms."

Retrieved from "https://en.wikibooks.org/w/index.php?title=Ruby_Programming/Reference/Objects/Symbol&oldid=3118827"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp