---
title: "Discussion on \"Understand `nil` in Ruby\" | Hashnode"
description: "Discussion on \"Understand `nil` in Ruby\". What's nil?\nnil is an instance of NilClass. It's a special Ruby object used to represent the absence of any value. And it also behaves like false when used in a conditional statement.\nWhat's more, there is only one nil object, whose object_id is alwa..."
url: "https://hashnode.com/posts/understand-nil-in-ruby/65c4798fd82d290c3ee98c4e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understand \`nil\` in Ruby](https://lynnbright.com/understand-nil-in-ruby?utm_source=hashnode&utm_medium=feed)

What's nil? nil is an instance of NilClass. It's a special Ruby object used to represent the absence of any value. And it also behaves like false when used in a conditional statement. What's more, there is only one nil object, whose object\_id is alwa...

Aug 13, 2021 · 2 min read · lynnbright.com  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)

## Written by

[Lynn Chang](https://hashnode.com/@Lynnbright)

@Lynnbright · Taipei, Taiwan

  
[View profile](https://hashnode.com/@Lynnbright)

Rails Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
