Skip to content

Instantly share code, notes, and snippets.

@shard-test
Last active December 24, 2015 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shard-test/6858751 to your computer and use it in GitHub Desktop.
Save shard-test/6858751 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