Reputation: 341
could you please explain me this piece of code? Thank you.
items.addItem("a").addItem("b").addItem("c").run();
Upvotes: 0
Views: 113
Reputation: 22532
Not sure what framework you're using, but the addItem method returns the parent instance (return this
), so you can call another method upon the output.
Upvotes: 1