Sha256: bb3e2af9b716dbb51c1560d6251582ef46d2fc1364fe7a32d1bf693b6b3bc9b3

Contents?: true

Size: 326 Bytes

Versions: 310

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/object/blank'
require 'singleton'

module EacRubyUtils
  # A blank string which returns +false+ for +blank?+ method.
  class BlankNotBlank < String
    include ::Singleton

    def initialize
      super('')
    end

    def blank?
      false
    end
  end
end

Version data entries

310 entries across 310 versions & 4 rubygems

Version Path
eac_ruby_utils-0.124.0 lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.97.2 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
eac_ruby_utils-0.123.0 lib/eac_ruby_utils/blank_not_blank.rb
eac_ruby_utils-0.121.0 lib/eac_ruby_utils/blank_not_blank.rb
eac_ruby_utils-0.120.0 lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.76.1 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.76.0 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.75.2 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
eac_ruby_utils-0.119.2 lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.75.1 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.75.0 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
eac_ruby_utils-0.119.1 lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.74.1 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.74.0 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.73.0 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
eac_ruby_utils-0.119.0 lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.72.0 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
eac_ruby_utils-0.118.1 lib/eac_ruby_utils/blank_not_blank.rb
eac_ruby_utils-0.118.0 lib/eac_ruby_utils/blank_not_blank.rb
eac_tools-0.70.1 sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb