Skip to content

Commit

Permalink
simplify ruby - using classes is overkill
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Jul 26, 2008
1 parent 3e8e8ce commit bb19ce2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 1 addition & 15 deletions ruby.rb
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 0 additions & 2 deletions ruby_procedural.rb

This file was deleted.

0 comments on commit bb19ce2

Please sign in to comment.