W3cubDocs

/Ruby on Rails 7.0

class TrueClass

Parent:
Object

Public Instance Methods

blank?() Show source
# File activesupport/lib/active_support/core_ext/object/blank.rb, line 78
def blank?
  false
end

true is not blank:

true.blank? # => false

@return [false]

to_param() Show source
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 27
def to_param
  self
end

Returns self.

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.