instance method blank?

Ruby on Rails 8.0.4

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

blank?()

An Pathname is blank if it’s empty:

Pathname.new("").blank?      # => true
Pathname.new(" ").blank?     # => false
Pathname.new("test").blank?  # => false

@return [true, false]

Source
# File activesupport/lib/active_support/core_ext/pathname/blank.rb, line 13
  def blank?
    to_s.empty?
  end

Defined in activesupport/lib/active_support/core_ext/pathname/blank.rb line 13 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Pathname

Type at least 2 characters to search.

↑↓ navigate · open · esc close