Skip to content
Snippets Groups Projects
Commit 4fb2da6c authored by pjs's avatar pjs
Browse files

Took out LOAD_PATH expansion from demos now that we're gemified


Signed-off-by: default avatarpjs <pjs@alum.mit.edu>
parent 80c3112f
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env ruby #!/usr/bin/env ruby
# expand the $LOAD_PATH to find local library modules until such require 'rubygems'
# time as SimpleKit gets turned into a Ruby Gem.
[File.expand_path(File.dirname(__FILE__), '../lib')].each do |new_location|
$LOAD_PATH.unshift(new_location) unless $LOAD_PATH.include?(new_location)
end
require 'simplekit' require 'simplekit'
# Demonstration model of an M/M/k queueing system. There are k servers # Demonstration model of an M/M/k queueing system. There are k servers
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# expand the $LOAD_PATH to find local library modules until such require 'rubygems'
# time as this gets turned into a Ruby Gem.
[File.expand_path(File.dirname(__FILE__), '../lib')].each do |new_location|
$LOAD_PATH.unshift(new_location) unless $LOAD_PATH.include?(new_location)
end
require 'simplekit' require 'simplekit'
class MyModel class MyModel
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# expand the $LOAD_PATH to find local library modules until such require 'rubygems'
# time as this gets turned into a Ruby Gem.
[File.expand_path(File.dirname(__FILE__), '../lib')].each do |new_location|
$LOAD_PATH.unshift(new_location) unless $LOAD_PATH.include?(new_location)
end
require 'simplekit' require 'simplekit'
class MyModel class MyModel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment