From bb19ce29ab77c026d357fc4c81df87965145c023 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Fri, 25 Jul 2008 17:27:37 -0700 Subject: [PATCH] simplify ruby - using classes is overkill --- ruby.rb | 16 +--------------- ruby_procedural.rb | 2 -- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 ruby_procedural.rb diff --git a/ruby.rb b/ruby.rb index c56baa23..2beb1f22 100644 --- a/ruby.rb +++ b/ruby.rb @@ -1,16 +1,2 @@ #!/usr/bin/ruby - -class Hello - - def initialize - @message = "Hello World!" - end - - def say_hi - puts @message - end - -end - -h = Hello.new -h.say_hi +puts "Hello World" diff --git a/ruby_procedural.rb b/ruby_procedural.rb deleted file mode 100644 index 2beb1f22..00000000 --- a/ruby_procedural.rb +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/ruby -puts "Hello World"