Skip to content

Instantly share code, notes, and snippets.

@avdi
Created July 20, 2009 20:11
Show Gist options
  • Save avdi/150868 to your computer and use it in GitHub Desktop.
Save avdi/150868 to your computer and use it in GitHub Desktop.
# #!/usr/bin/env ruby
# :PUBLISHER: source, gist
# :BRACKET_CODE: <pre>, </pre>
# :PROCESS: ruby, "ruby %f"
# :SAMPLE: hello
def hello(who)
puts "Hello, #{who}"
end
hello("World")
# :TEXT:
# Check out my amazing program! Here's the hello method:
# :INSERT: @hello:/def/../end/
# And here's the output:
# :INSERT: @hello|ruby
# :SET: 'GIST_ID', '150868'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment