Sha256: c1de0373e68856bec52c906e6b70926e356288cf25b27c3ab0122b7b7966ad35
Contents?: true
Size: 656 Bytes
Versions: 20
Compression:
Stored size: 656 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'rubygems' require 'ramaze' # you can access it now with http://localhost:7000/ # This should output # Hello, World! # in your browser class MainController < Ramaze::Controller def index "Hello, World!" end end def check os = [] ObjectSpace.each_object{|o| os << o } p os.inject(Hash.new(0)){|s,v| s[v.class] += 1; s}.sort_by{|k,v| v} end Thread.new do loop do check sleep 5 end end Ramaze::Log.loggers.clear Ramaze.start :adapter => :mongrel, :sourcereload => false
Version data entries
20 entries across 20 versions & 5 rubygems