Sha256: 7c2824222e5f81853371e12fe2be107b0f0fff96705c604b1b2dd354b359dba3
Contents?: true
Size: 365 Bytes
Versions: 23
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true require "pathname" class Pathname # An Pathname is blank if it's empty: # # Pathname.new("").blank? # => true # Pathname.new(" ").blank? # => false # Pathname.new("test").blank? # => false # # @return [true, false] def blank? to_s.empty? end def present? # :nodoc: !to_s.empty? end end
Version data entries
23 entries across 23 versions & 2 rubygems