Skip to main content
Code Review

Questions tagged [ruby]

Ruby is a multi-platform, open-source, dynamic, object-oriented, interpreted language created by Yukihiro Matsumoto (Matz) in 1993.

Filter by
Sorted by
Tagged with
3 votes
1 answer
78 views

I have implemented my own version of Ruby's Array uniq-method (Ruby docs - Class array) as a monkey patch on Array. Method-impl.: ...
4 votes
2 answers
130 views

Task: Implement a method, which receives an array of strings as argument. The strings are dates in the format "MM**DD**YYYY". For example: "11**03**2024". Add 30 to each of the ...
6 votes
2 answers
465 views

Link to kata: linkRank: 6 kyuKata author: @rsalgado I have been recently learning Ruby-lang and have been attempting to solve the following kata from Codewars involving Goldbach's Conjecture: ...
4 votes
2 answers
262 views

I have tried to implement the Array-shuffle method myself. Haven't had a look on some similar algorithm-examples by purpose and tried to figure out something myself. The actual Array-extension: ...
4 votes
1 answer
217 views

I like to have a script which fetches data from a REST-API then writes the data into a CSV file. Here's what I've got so far (prototype, using a publicly accessible dummy-API): ...
2 votes
1 answer
78 views

Initial situation: Each week a nested folder-/file-structure has to be created. Content is added to the files. Afterward the structure is copied to a shared-folder for long-time documentation. Example:...
5 votes
3 answers
144 views

I have written a method, which checks for Palindrome and attached it to the String-class. Here's the code: ...
michael.zech's user avatar
  • 5,040
3 votes
0 answers
54 views

We are using Searchkick to run our elasticsearch and Pundit to authorize users for specific actions. Below is our module SearchkickScope that does it's best to ...
2 votes
1 answer
89 views

previusly I make a post for Session Logic for User Verification in Rails Migration. Now the improvement version following advice of the comments is here. The problem was the use of `` for executing in ...
ZAMA's user avatar
  • 55
3 votes
1 answer
120 views

This is a logic to create sessions on RoR 7.1.2 based on the last version of the website which was in vanilla PHP, with the upgrade I have to deal with the users that were already signed up but not ...
ZAMA's user avatar
  • 55
1 vote
1 answer
126 views

The task A file similar to the following is provided. ...
1 vote
1 answer
82 views

Task description: Implement a generate_unique_phone_numbers function. The function shall parse the given text-file. Content-example: ...
3 votes
3 answers
183 views

Task Write a Ruby function, which accepts a path to a text file and returns a string consisting of the last n lines in reversed order, separated by commas. Example input file: ...
1 vote
1 answer
170 views

I wrote the simple calculator in Ruby. This is my first program in this language. I've switched recently from Python to Ruby. What do you think about my work? Thanks ...
1 vote
4 answers
290 views

Task: Implement a function which loops from 1 to 100 and prints "Fizz" if the counter is divisible by 3. Prints "Buzz" if the counter is divisible by 5 and "FizzBuzz", ...

15 30 50 per page
1
2 3 4 5
...
108

AltStyle によって変換されたページ (->オリジナル) /