Sha256: a2ab6795cb9971072f83483c134cdadf52616f4e818237c46d5fc85bbf00f25b

Contents?: true

Size: 188 Bytes

Versions: 2

Compression:

Stored size: 188 Bytes

Contents

module DvelpApiAuth
  module HelperMethods
    def present?(instance)
      instance && !instance.to_s.empty?
    end

    def blank?(instance)
      !present?(instance)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dvelp_api_auth-0.5.0 lib/dvelp_api_auth/helper_methods.rb
dvelp_api_auth-0.1.0 lib/dvelp_api_auth/helper_methods.rb