From 5f8d089a0015d8de4456a873b69dd855a3d82b59 Mon Sep 17 00:00:00 2001 From: Dr Nic Williams Date: Tue, 23 Dec 2008 10:13:28 +1000 Subject: [PATCH] reduce size of app.rb code --- download_and_scrape_html/lib/application.rb | 30 +-------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/download_and_scrape_html/lib/application.rb b/download_and_scrape_html/lib/application.rb index 676877d..48ad6f5 100644 --- a/download_and_scrape_html/lib/application.rb +++ b/download_and_scrape_html/lib/application.rb @@ -1,11 +1,8 @@ require 'hotcocoa' - -# Replace the following code with your own hotcocoa code +include HotCocoa class Application - include HotCocoa - def start application :name => "Download And Scrape Html" do |app| app.delegate = self @@ -29,31 +26,6 @@ def connection(connection, didReceiveResponse:didReceiveResponse) def connection(connection, didReceiveData:didReceiveData) @didReceiveData.text = "connection_didReceiveData" end - - - # file/open - def on_open(menu) - end - - # file/new - def on_new(menu) - end - - # help menu item - def on_help(menu) - end - - # This is commented out, so the minimize menu item is disabled - #def on_minimize(menu) - #end - - # window/zoom - def on_zoom(menu) - end - - # window/bring_all_to_front - def on_bring_all_to_front(menu) - end end Application.new.start