Spec-Zone.ru › Ruby on Rails 5.0

class FalseClass

Parent:
Object

Общедоступные методы экземпляров

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

false пустой:

false.blank? # => true

@return [true]

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

false не дублируется:

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

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

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

Spec-Zone.ru

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