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
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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