News for hackers. Stuff that matters.
Re:Show HN: Nothing.js – A chainable mock object which alway... by baddox on Saturday March 31, 2018 @04:17PM (#16724977)
Nope. Ruby doesn’t support the function call paren syntax for anything other than methods. You could do stuff like Whatever.new().foo.().bar[] though.
Re:Show HN: Nothing.js – A chainable mock object which alway... by djur on Saturday March 31, 2018 @05:37PM (#16725300)
foo, bar, and baz are all methods here, so you can use parens.