-
-
Save mark/6945242 to your computer and use it in GitHub Desktop.
Shard: sample shard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Greeter | |
def initialize(who) | |
@who = who | |
end | |
def greet | |
puts "Hello, #{ @who }!" | |
end | |
end | |
def hello_world | |
Greeter.new("world").greet | |
end | |
hello_world | |
Greeter.new("yourself").greet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment