Skip to content

Instantly share code, notes, and snippets.

# must be baller and either furnished or rent cheaper than 2100
def rent?(furnished, rent, baller)
if baller && furnished || rent < 2100
return true
else
return false
end
end
###
@shinobcrc
shinobcrc / max.rb
Last active June 22, 2016 02:59 — forked from davidvandusen/max.rb
# Find the maximum
def maximum(array)
max = array[0]
array.each do |x|
if max < x
max = x
end
end
max