This file contains hidden or 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
function bondage(object, method_name) { | |
return function() { | |
return object[method_name].apply(object, arguments); | |
} | |
} | |
class Person(){ | |
} | |
Person.prototype.doSomething = function() { | |
// Do something... |
This file contains hidden or 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
# | |
# hputs(): makes debug messages readable when debugging specs with the TextMate RSpec bundle | |
# | |
def hputs(*args) | |
puts ERB::Util.html_escape(args.join("\n")).gsub(/\r?\n/, '<br/>') + '<br/>' | |
end |
NewerOlder