Spec-Zone.ru › Ruby on Rails 4.1

класс FalseClass

Родитель:
Объект

Открытые методы экземпляра

blank?() Показать исходный код

false пустой:

false.blank? # => true

@return [true]

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

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

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

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

# File activesupport/lib/active_support/core_ext/object/to_query.rb, line 31
def to_param
  self
end

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

Spec-Zone.ru

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