A collection of methods that output to stdout. All the methods are available both on the $stdout object and as standalone methods.
this.$stdout = new $Stdout();
assign(this, this.$stdout);
If you’d like the Integer Methods as attributes on any number, just run this method.
ruby.add_methods_to_number_prototype();
add_methods_to_number_prototype () {
_addMethodsToPrototype(Number.prototype, this.int);
}
If you’d like the String Methods as attributes on any string, just run this method.
ruby.add_methods_to_string_prototype();
add_methods_to_string_prototype () {
_addMethodsToPrototype(String.prototype, this.str);
}