E
E
eldar_web2018-06-26 16:56:00
Ruby on Rails
eldar_web, 2018-06-26 16:56:00

What to do in Ruby on Rails if the class (instance) method is not visible inside the class?

For example, I use the Parallel technology, inside a method of a certain class:

Parallel.each(list, in_proceess: 3) do |item|
my_method(item)
end

Here my_method is another method of the same class (instance), and it is not visible in this technology.
What can be done in this case?
Making this method a class method and using it is not an option.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question