Sha256: 69382379f5830e511faf3a41b978fe1948056a4ac4b0d8c6cecc47d71e2baa7e

Contents?: true

Size: 694 Bytes

Versions: 8

Compression:

Stored size: 694 Bytes

Contents

# frozen_string_literal: true

##
#
#
module ConvenientService
  module Examples
    module Standard
      module RequestParams
        module Utils
          module Object
            ##
            # TODO: Specs.
            #
            class Blank < Support::Command
              attr_reader :object

              def initialize(object)
                @object = object
              end

              ##
              # https://api.rubyonrails.org/classes/Object.html#method-i-blank-3F
              #
              def call
                object.respond_to?(:empty?) ? !!object.empty? : !object
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/examples/standard/request_params/utils/object/blank.rb
convenient_service-0.11.0 lib/convenient_service/examples/standard/request_params/utils/object/blank.rb
convenient_service-0.10.1 lib/convenient_service/examples/standard/request_params/utils/object/blank.rb
convenient_service-0.10.0 lib/convenient_service/examples/standard/request_params/utils/object/blank.rb
convenient_service-0.9.0 lib/convenient_service/examples/standard/request_params/utils/object/blank.rb
convenient_service-0.8.0 lib/convenient_service/examples/standard/request_params/utils/object/blank.rb
convenient_service-0.7.0 lib/convenient_service/examples/standard/request_params/utils/object/blank.rb
convenient_service-0.6.0 lib/convenient_service/examples/standard/request_params/utils/object/blank.rb