Calling private methods can for example be useful in unit testing to increase the code coverage.
Object#send gives you access to all methods of a particular object (even protected and private ones).
obj.send(:method [, args...])In case send method has been overwritten, you can also use its aliased version __send__.
(Source: rubyloveinfo)
9 notes 0 comments (via rubyloveinfo)
object (even protected and private ones).
You can use HTML tags for formatting. Wrap code in <code> tags and multiple lines of code in <pre><code> tags.