Compare commits
No commits in common. "ruby" and "master" have entirely different histories.
2 changed files with 4 additions and 18 deletions
|
@ -1,7 +1,6 @@
|
|||
# Hello Ruby
|
||||
# Hello (World) Learning
|
||||
|
||||
```bash
|
||||
ruby helloworld-ruby.rb
|
||||
```
|
||||
Prints: `Hello World`
|
||||
A place for me to play around with some basic example apps, most commonly "Hello World"'s and "TODO" examples.
|
||||
|
||||
**Each language/framework is broken down by branch.**
|
||||
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
# https://stackoverflow.com/questions/705729/how-do-i-create-a-ruby-hello-world#705754
|
||||
|
||||
class HelloWorld
|
||||
def initialize(name)
|
||||
@name = name.capitalize
|
||||
end
|
||||
def sayHi
|
||||
puts "Hello #{@name}!"
|
||||
end
|
||||
end
|
||||
|
||||
hello = HelloWorld.new("World")
|
||||
hello.sayHi
|
Loading…
Add table
Reference in a new issue