issue13
Version:
Penis.js, Vagina.js, Hole.js, Ass.js, and Mouth.js as an npm package.
41 lines (33 loc) • 600 B
JavaScript
const Hole = require('./hole')
const mouth = require('./mouth')
class Ass extends Hole {
#open
#contents
constructor() {
super(function(thing) {
this.shove(thing)
})
this.#open = false
this.#contents = {}
}
open() {
this.#open = true
}
close() {
this.#open = false
}
shove(key, value) {
if (this.#open) {
this.#contents[key] = value
} else {
throw new Error('Ass must be open to shove something inside')
}
}
get contents() {
return this.#contents
}
wipe() {
this.#contents = {}
}
}
module.exports = Ass