Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2.1.1 :072 > a = nil
- => nil
- 2.1.1 :073 > if !a.nil? && !a.empty?
- 2.1.1 :074?> puts "tut"
- 2.1.1 :075?> end
- => nil
- 2.1.1 :076 > a = ""
- => ""
- 2.1.1 :077 > if !a.nil? && !a.empty?
- 2.1.1 :078?> puts "tut"
- 2.1.1 :079?> end
- => nil
- 2.1.1 :080 > a = "abc"
- => "abc"
- 2.1.1 :081 > if !a.nil? && !a.empty?
- 2.1.1 :082?> puts "tut"
- 2.1.1 :083?> end
- tut
- => nil
- 2.1.1 :084 >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement