i have a method declaration with one argument :
def my_method(argum)
if argum.empty?
puts "argument is empty"
else
puts "argument is not empty"
end
end
when i call this method and i pass a symbol to it like : my_method(:aleatoir_symbol)
it show me argument is not empty and when i pass a literal symbol to it like this my_method(:"")
it show argument is empty
i also test with irb and this is the result :
:a_symbol.empty?
=> false
:"".empty?
=> true
my question is why when i pass a symbol like :any_symbol it show argument is not empty ??
i'm searching and i find a similar question here but there are just one answer who given't me a clear comprehension of the reason. any clear answer will be helpful . thank's
** update **
here is my original question, and i open this question because i don't have a good answer