Timeline for I'm not the language you're looking for!
Current License: CC BY-SA 3.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:39 | history | edited | CommunityBot | replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/ | |
| Oct 27, 2016 at 7:06 | comment | added | Dom Hastings | @Oliver Indeed, I think if I'd thought about that at first I'd have gone with it, but since this has been around a while now, I'll keep as-is. I'll remember that though for sure, as I'm sure it'll come in handy at some point! Thanks! | |
| Oct 26, 2016 at 21:51 | comment | added | Oliver Ni | You can write JavaScript by JS to save bytes. | |
| Sep 2, 2016 at 7:27 | comment | added | Dom Hastings | @Jordan Thanks! Not sure how I didn't spot the removal of the \' with double quotes though, and $><< means I can apply the fix you mentioned and keep the same byte count! | |
| Sep 2, 2016 at 7:26 | history | edited | Dom Hastings | CC BY-SA 3.0 | added 158 characters in body |
| Sep 1, 2016 at 18:10 | comment | added | Jordan | You could also save. A few bytes by using $><<s instead of puts s and using double-quotes so you can drop the backslash in wasn\'t. | |
| Sep 1, 2016 at 18:05 | comment | added | Jordan | In more recent versions of Ruby, a method definition returns the name of the method as a symbol, so your eval is returning :log. I think you could fix it by putting ;c after end. The =~/= ~ trick is great, though! | |
| Apr 5, 2016 at 6:10 | history | edited | Dom Hastings | CC BY-SA 3.0 | Added disclaimer that it doesn't work in Ruby 2.1.5 |
| Apr 5, 2016 at 6:07 | comment | added | Dom Hastings | @EMBLEM My testing was carried out on Ruby 2.0 built into OS X, I haven't tested anything beyond that, but I'll certainly add a comment indicating it might well be broken in other version! | |
| Apr 5, 2016 at 1:57 | comment | added | EMBLEM | This answer does not work for me in Ruby 2.1.5. I get: NoMethodError: undefined method `log' for :log:Symbol | |
| Sep 3, 2015 at 16:07 | history | edited | Dom Hastings | CC BY-SA 3.0 | Move variable declaration for -2 |
| Sep 3, 2015 at 9:31 | history | edited | Dom Hastings | CC BY-SA 3.0 | Removed reference to `console.log` in the Ruby method definition. |
| Sep 3, 2015 at 9:17 | history | edited | Dom Hastings | CC BY-SA 3.0 | amended title to be inkeeping with everyone else! |
| Sep 3, 2015 at 8:58 | history | answered | Dom Hastings | CC BY-SA 3.0 |