TIL about %i[] in Ruby >= 2.0.0-p0.
2.0.0-p195> %i[holy shit]
=> [:holy, :shit]
I’ve wanted this for so long. All my dreams have come true
Did you like this post, repost it, or respond to it? Let me know by sending a webmention!
TIL about %i[] in Ruby >= 2.0.0-p0.
2.0.0-p195> %i[holy shit]
=> [:holy, :shit]
I’ve wanted this for so long. All my dreams have come true
Did you like this post, repost it, or respond to it? Let me know by sending a webmention!