Can some one help me understand how ‘endertromb’ is being used or where I can get it for this guide?
http://poignant.guide/book/chapter-5.html
Why has 2 examples where he is trying to teach a concept about instance variables but he seems to be requesting a file endertromb.rb and using it. Am I missing something? what/how can I get this file so that I don’t get errors. I’ve tried to Google but got nothing at all.
Heres example code of how he used it:
require 'endertromb'
class WishMaker
def initialize
@energy = rand( 6 )
end
def grant( wish )
if wish.length > 10 or wish.include? ' '
raise ArgumentError, "Bad wish."
end
if @energy.zero?
raise Exception, "No energy left."
end
@energy -= 1
Endertromb::make( wish )
end
end
Endertrombis just a class defined in another file, and thats all you need to know. As stated by _why himself in this guide:and