Skip to content

Instantly share code, notes, and snippets.

@mark
Forked from shard-test/basic.shard.rb
Created October 12, 2013 02:58
Show Gist options
  • Save mark/6945242 to your computer and use it in GitHub Desktop.
Save mark/6945242 to your computer and use it in GitHub Desktop.
Shard: sample shard
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