Skip to content

Tag Archives: Ruby Symbol-class

Symbol#match() : match() is a Symbol class method which matches the pattern with symbol. Syntax: Symbol.match() Parameter: Symbol values Return: position – if pattern matches… Read More
Symbol#=~() : =~() is a Symbol class method which =~es the pattern with symbol. Syntax: Symbol.=~() Parameter: Symbol values Return: position – if pattern =~es… Read More
Symbol#==() : ==() is a Symbol class method which compares two Symbol objects. Syntax: Symbol.==() Parameter: Symbol values Return: true if two Symbols are equal… Read More
Symbol#encoding() : encoding() is a Symbol class method which returns the Encoding object that represents the encoding of Symbol. Syntax: Symbol.encoding() Parameter: Symbol values Return:… Read More
Symbol#inspect() : inspect() is a Symbol class method which returns the string representation of the symbol value. Syntax: Symbol.inspect() Parameter: Symbol values Return: the string… Read More
Symbol#id2name() : id2name() is a Symbol class method which returns the name or string corresponding to symbol Syntax: Symbol.id2name() Parameter:Symbol values Return: the name or… Read More
Symbol#empty?() : empty?() is a Symbol class method which checks whether the symbol is empty. Syntax: Symbol.empty?() Parameter: Symbol values Return: true – if symbol… Read More
Symbol#downcase() : downcase() is a Symbol class method which returns the downcased form of symbol based on the position of next capital form. Syntax: Symbol.downcase()… Read More
Symbol#casecmp() : casecmp() is a Symbol class method which checks for the case-insensitive version of Symbol Syntax: Symbol.casecmp() Parameter: Symbol values Return: the case-insensitive version… Read More
Symbol#capitalize() : capitalize() is a Symbol class method which returns the capitalized form of symbol based on the position of next capital form. Syntax: Symbol.capitalize()… Read More
Symbol#===() : ===() is a Symbol class method which compares two Symbol objects. Syntax: Symbol.===() Parameter: Symbol values Return: true – if both the symbols… Read More
Symbol#length() : length() is a Symbol class method which returns the length of the symbol. Syntax: Symbol.length() Parameter: Symbol values Return: the length of the… Read More
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… Read More
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… Read More
Symbol#to_sym() : to_sym() is a Symbol class method which returns the symbol representation of the symbol object. Syntax: Symbol.to_sym() Parameter: Symbol values Return: the symbol… Read More