jbodah/suggest_rb

awesome gem, but was unable to find the method I was seeking (Array#product)

Closed this issue · 3 comments

ngouy commented

and finally found
image

:args expects an array of arguments. In your example, product is called with one argument [1] so :args should be [[1]] (as the first arg is an array)

$ ruby -rsuggest -e 'puts [1,2,3].what_returns? [[1,1],[2,1],[3,1]], args: [[1]]'
product
ngouy commented

haha ^^ my bad . sorry for the inconvenience 🙏

No worries 👍