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 Robot(name, programmingLanguage) { | |
| this.name = name; | |
| this.language = programmingLanguage; | |
| } | |
| Robot.prototype.sayHello = function () { | |
| console.log(`My name is ${this.name} and I like to program in ${this.language}.`) | |
| } | |
| function FancyRobot(name, programmingLanguage) { |
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
| # get a path to the data that doesn't | |
| csvs_dir = File.expand_path('data', __dir__) | |
| # load the code | |
| require 'sales_engine' | |
| engine = SalesEngine.new(csvs_dir) | |
| # load the csvs | |
| engine.startup |