false
and nil
are the only ones:
http://www.ruby-doc.org/core-2.1.1/FalseClass.html
Rails provides present?
which also includes empty strings and empty arrays: http://api.rubyonrails.org/classes/Object.html#method-i-present-3F
More Related Contents:
- Ruby syntax error, unexpected tIDENTIFIER, expecting end-of-input
- How to pass command line arguments to a rake task
- Parsing a JSON string in Ruby
- How to set TLS context options in Ruby (like OpenSSL::SSL::SSL_OP_NO_SSLv2)
- Ruby: kind_of? vs. instance_of? vs. is_a?
- Why does installing Nokogiri on Mac OS fail with libiconv is missing?
- Pass variables to Ruby script via command line
- What is the difference between Ruby 1.8 and Ruby 1.9
- How do I get the match data for all occurrences of a Ruby regular expression in a string?
- Why isn’t the eigenclass equivalent to self.class, when it looks so similar?
- Open an IO stream from a local file or url
- Performance of Arrays and Hashes in Ruby
- Ruby max integer
- Ruby Regular expression to match a url [duplicate]
- What do you call the -> operator in Ruby?
- Understanding Ruby’s load paths
- Why is this RMagick call generating a segmentation fault?
- git, Heroku: pre-receive hook declined
- Understanding private methods in Ruby
- Iterate through every file in one directory
- Running a command from Ruby displaying and capturing the output
- In Rails, how to add a new method to String class?
- Why isn’t self always needed in ruby / rails / activerecord?
- Ruby factorial function
- Read, edit, and write a text file line-wise using Ruby
- Ruby: filter array by regex?
- Overriding method by another defined in module
- What will give me something like ruby readline with a default value?
- Is it possible to have class.property = x return something other than x?
- Functional code examples in ruby