Sha256: d9043d289725815b4f3c63192e49b7b5f5242a5170242ac9a4fa192c8f2d01e8
Contents?: true
Size: 703 Bytes
Versions: 5
Compression:
Stored size: 703 Bytes
Contents
# frozen_string_literal: true ## # # module ConvenientService module Examples module Standard class RequestParams module Utils module Object ## # TODO: Specs. # class Blank < ConvenientService::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
5 entries across 5 versions & 1 rubygems