What do you want to save?
Add Code snippet
New code examples in category Ruby
-
MANPUN 2021-09-02 19:54:01
ruby are spaces in keys of hashes allowed
# Any Object can be used as a key # so this is allowed: hash = { "k e y w i t h S P A C E S" => "is valid" } puts hash.inspect #> {"k e y w i t h S P A C E S"=>"is valid"} Add solution -
Eko Yuliawan 2021-09-02 13:36:01
ruby string trmi
>> @title = "abc" => "abc" >> @title.strip! => nil >> @title => "abc" >> @title = " abc " => " abc " >> @title.strip! => "abc" >> @title => &... Add solution -
Rian Mostert 2021-09-02 06:28:01
how to remove nested array brackets ruby
my_array.flatten Add solution
Best helpers
3demax
+5
Xoxocrow
+5
ZXX
+5
ThatsNinja
+5
Wai Yan
+5
Rabbid
+5
416E64726577
+5
Answerplease
+5
Giammin
+5
John Lapham
+5
L Marsh
+5
Dcw
+5
Elsa P.
+5
Ages
+5
Riptiki
+5