Skip to content

Commit

Permalink
Make it possible to use Literal::Null in a case statement
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Dec 10, 2024
1 parent dbc6bef commit 475cec2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/literal/null.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ def self.inspect
"Literal::Null"
end

def self.===(value)
self == value
end

freeze
end

0 comments on commit 475cec2

Please sign in to comment.