I was reading on cells gem when I suddenly got curious on its implementation of unnamed method in its documentation.
Particularly the code below:
CommentCell.(@comment).()
and
cell(:comment, @song).(:index)
where it uses .(arguments)
without a method name.
I am certain the answer is just somewhere in the source code itself. But briefly looking at Cell::ViewModel
doesn't immediately help me, so I was just wondering first if anyone knows how to do this before I thoroughly inspect the source code, and hopefully satisfies my curiosity.
I can see some uses of this in the app that I will be making soon.