This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Evolve | |
// @namespace http://tampermonkey.net/ | |
// @version 3.3.1.123 | |
// @description try to take over the world! | |
// @downloadURL https://gist.github.com/Vollch/b1a5eec305558a48b7f4575d317d7dd1/raw/evolve_automation.user.js | |
// @updateURL https://gist.github.com/Vollch/b1a5eec305558a48b7f4575d317d7dd1/raw/evolve_automation.meta.js | |
// @author Fafnir | |
// @author TMVictor | |
// @author Vollch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Probably re-inventing the wheel for the umpteenth time, but figured I'd roll my own basic version. | |
# Probably also not production-code worthy, but serves well enough for the work I'm doing. | |
class Object | |
def in(*other) | |
raise(ArgumentError,"Other must be an enumberable type") unless other.is_a? Enumerable | |
other.include? self | |
end | |
end |