This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######## | |
# This file script wil show you how to install Ruby Enterprise Edition (REE) 1.8.7-2011-03 with | |
# rbenv, rails 3 and homebrew. Bundler is also used. | |
######## | |
#setup the installer environment | |
brew install wget | |
wget -q http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2011.03.tar.gz | |
tar xzf ruby-enterprise-1.8.7-2011.03.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Ptest | |
def initialize(stalls) | |
@stalls = Array.new(stalls).map { |s| s = false } | |
end | |
def stalls | |
@stalls | |
end | |
def empty? |