Skip to content

Instantly share code, notes, and snippets.

View epochwolf's full-sized avatar

Epoch Wolf epochwolf

View GitHub Profile
#! /usr/bin/ruby
# This program takes a list of users, their desires, and their possessions.
# Then it asks for a particular user and matches them with the best user
# for their desires.
class User
attr_reader :has, :wants
attr_accessor :score
def initialize (has=[], wants=[])
@score = 0
accept = <%= param[:accept] || accept %>
connect = <%= param[:connect] || connect %>
cert = <%= param['cert'] || cert %>
key = <%= param['key'] || key %>
CAfile = <%= param['cafile'] || cafile %>
CRLfile = <%= param['crlfile'] || crlfile %>