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
| asdf |
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
| // I needed a basis with which to mock. | |
| function CanYouMockMe(){ | |
| this.i_want_stubbed = function(){ return false; }; | |
| this.say = function(){ console.log(arguments[0] || "hi!"); }; | |
| }; | |
| // new Object def. | |
| function Foo() { | |
| this.do_something_interesting = function() { | |
| //hard coded dependency... like my ex-wife. :P |
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
| class Numeric | |
| def spaces | |
| " " * self | |
| end | |
| end | |
| p 128.spaces |