A fake auction house I made for a school project.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
the_auctionhouse/src/func.rb

15 lines
266 B

3 years ago
def get_random_subtitle
subtitles = File.readlines "misc/subtitles.txt"
subtitles.sample.chomp
end
3 years ago
def init_info(info={})
g = Hash.new ""
3 years ago
info = g.merge(info)
return info
end
def serve(template, info={})
slim( template, locals: {info: init_info(info)} )
end