Spec-Zone.ru › Ruby on Rails 5.0

class TrueClass

Parent:
Object

Методы публичного экземпляра

blank?() Показать исходный код
# File activesupport/lib/active_support/core_ext/object/blank.rb, line 74
def blank?
  false
end

true не пусто:

true.blank? # => false

@return [false]

duplicable?() Показать исходный код
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 68
def duplicable?
  false
end

true не дублируемый:

true.duplicable? # => false
true.dup         # => TypeError: can't dup TrueClass
to_param() Показать исходный код
# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 25
def to_param
  self
end

Возвращает self.

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API