VOOZH about

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

⇱ Ruby | Symbol upcase function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Ruby | Symbol upcase function

Last Updated : 10 Dec, 2019
Symbol#upcase() : upcase() is a Symbol class method which returns the uppercase representation of the symbol object.
Syntax: Symbol.upcase() Parameter: Symbol values Return: the uppercase representation of the symbol object.
Example #1 : Output :
Symbol a : aBcDeF

Symbol b : äöü

Symbol c : ABCDEF



Symbol a upcase form : ABCDEF

Symbol b upcase form : äöü

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

Symbol b : åöó

Symbol c : GEEKS



Symbol a upcase form : GEEKS

Symbol b upcase form : åöó

Symbol c upcase form : GEEKS

Comment
Article Tags: