Skip to content

Instantly share code, notes, and snippets.

@yachi
Forked from anonymous/test.rb
Last active December 21, 2015 08:49
Show Gist options
  • Save yachi/6281136 to your computer and use it in GitHub Desktop.
Save yachi/6281136 to your computer and use it in GitHub Desktop.
def runner(v1, &block)
puts v1
yield(v1) if block_given?
end
runner "jithub"
runner "OHAI" do |v1|
puts "ARRAR"
puts v1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment