created a Bash Hello World script, made the Ruby script more Object Oriented

This commit is contained in:
Mike Green
2008-07-23 10:30:18 -04:00
parent 3fa7c46d11
commit d4a51a859d
2 changed files with 18 additions and 1 deletions

3
bash.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
echo "Hello World!";

16
ruby.rb
View File

@@ -1,2 +1,16 @@
#!/usr/bin/ruby
puts "Hello World"
class Hello
def initialize
@message = "Hello World!"
end
def say_hi
puts @message
end
end
h = Hello.new
h.say_hi