VOOZH about

URL: https://www.geeksforgeeks.org/ruby/ruby-symbol-intern-function/

⇱ Ruby | Symbol intern function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Ruby | Symbol intern function

Last Updated : 10 Dec, 2019
Symbol#intern() : intern() is a Symbol class method which returns the object corresponding to symbol.
Syntax: Symbol.intern() Parameter: Symbol values Return: the object corresponding to symbol
Example #1 : Output :
Symbol a intern form : aBcDeF

Symbol b intern form : äöü

Symbol c intern form : ABCDEF
Example #2 : Output :
Symbol a intern form : geeks

Symbol b intern form : åöó

Symbol c intern form : GEEKS
Comment
Article Tags: