Skip to content

Instantly share code, notes, and snippets.

@y-yagi
Last active November 14, 2019 04:28
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 y-yagi/40226029be857d3ab38e51299482ad26 to your computer and use it in GitHub Desktop.
Save y-yagi/40226029be857d3ab38e51299482ad26 to your computer and use it in GitHub Desktop.
assigned but unused variable
a = 1
eval(:a.to_s)
=begin
$ ruby -vw a.rb
ruby 2.7.0preview1 (2019-05-31 trunk c55db6aa271df4a689dc8eb0039c929bf6ed43ff) [x86_64-linux]
a.rb:1: warning: assigned but unused variable - a
=end
puts "hello world7"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment