DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
ruby string to symbol
s = "something" # First method s.to_sym # => :something # A second method :"#{s}" # => :something
Source by riptutorial.com #
PREVIOUS
NEXT
Tagged:
#ruby
#string
#symbol
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit