TIL: Ruby’s gsub! returns nil if no transformation took placed on a string because that’s *exactly* the hoped for output from that.
-
-
@Carols10cents ::sob::Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@Carols10cents@saalon class NilClass; def gsub!; puts "Nope"; end; end -
@CoralineAda@Carols10cents ::merges pull request::
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.