A
A
Arsenikum2016-02-28 16:56:40
ruby
Arsenikum, 2016-02-28 16:56:40

How can you call private methods on objects in Ruby?

How can you call private methods on objects in Ruby?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey P, 2016-02-28
@ruddy22

Through the send method.
Obj.send(:method)

T
TyzhSysAdmin, 2016-02-28
@POS_troi

Make it public :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question