W3cubDocs

/Ruby on Rails 5.2

class TrueClass

Parent:
Object

Public Instance Methods

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

true is not blank:

true.blank? # => false

@return [false]

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

true is not duplicable:

true.duplicable? # => false
true.dup         # => TypeError: can't dup TrueClass
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–2018 David Heinemeier Hansson
Licensed under the MIT License.