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
# error occurs when same lexical method (which calls super) | |
# is defined on the singleton class of two or more objects of different classes, | |
# and then that method is called on any of the objects | |
# other than the last one the method was defined on... | |
def x(obj) | |
# uncomment eval and it works | |
# eval " | |
class << obj | |
def to_s |
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
exports.init = function(startup_time, config, events) { | |
events.on('flush', function(timestamp, metrics) { | |
console.log(JSON.stringify(timestamp)); | |
console.log(JSON.stringify(metrics)); | |
}); | |
return true; | |
}; |