ruby tag

542 questions


1 answers
38 views
0
Tell me the command to remove the RVM

While installing the RVM, something went wrong, so I think I need to delete it and download it againHow do I get rid of RVM in Ubuntu?

2 years ago

1 answers
33 views
0
Can I make --no-ri --no-rdoc the default in the gem install?

Whenever I install gem, I forget to write --no-ri --no-rdoc so I keep downloading RI and RDoc together.I don't see RI and RDoc at all, so I wonder if I can set that flag as the default.

2 years ago

1 answers
68 views
0
Differences between "rake db:migrate", "db:reset", and "db:schema:load"

What I want to know is the difference between rake db:schema:load. *rake db:migrate and rake db:reset I already know the difference, but I wrote it down just in case what I knew was wrong


1 answers
45 views
0
What is the name of the method that erases all blank characters in the string?

I'm looking for a method to erase blank characters such as trim in php.Ruby has pretty much everything already made, so I'm sure it's somewhere, but I don't know the name

2 years ago

2 answers
28 views
0
What does &:title mean in Model.all.map(&:title)?

There's a model in Rails What does Model.all.map(&:title) mean?The map in the Ruby array [1, 2, 3].I've written map { |n| n * n} #=> [1, 4, 9] before.

2 years ago

1 answers
127 views
0
Why is there an exclamation point on the Ruby method?

Do you have this question mark? Are you right? I understand it's a question mark because you ask like thisWhat is the exclamation mark for?


1 answers
96 views
0
Can we take any element out of the array without using the length of the array?

How do I spin random to extract any element from an array?myarr = [1,6,43,82,3,68,9,2,1]The same number is stored and you want to extract any number from this myarr. I'm using the arrangement lengthmy...

2 years ago

1 answers
127 views
0
What's the difference between a class and a module in Ruby

I originally used Java, and I'm just learning Ruby.It's a bit unfamiliar in Java, so I wonder exactly how modules and classes are different, and why they usually use modules, not classes.

2 years ago

1 answers
51 views
0
Questions about finding a specific string in a string

varMessage = hi/thsid/sdfhsjdf/dfjsd/sdjfsdn\n /my/name/is/balaji.so\n call::myFunction(int const&)\n void::secondFunction(char const&)\n . . . this/is/last/line/liobrary.soHow do ...

2 years ago

1 answers
79 views
0
Please help me change the elements in the array to [Element, Index]

Arrangements such as [hello, ruby, world] in ruby[Hello, [2], [ruby, 3], [world, 4] How do I change it?

2 years ago
« - 48 - »

© 2024 OneMinuteCode. All rights reserved.