Skip to content

Instantly share code, notes, and snippets.

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) {
# 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