This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instance Variable that is undefined | |
@person&.name # => nil | |
# Method that returns nil | |
def person; nil; end | |
person&.name # => nil | |
# local variable that is undefined - this is the one I am curious about since it "seems" to break convention | |
adult&.name # => undefined local variable exception raised |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment