Module: DvelpApiAuth::HelperMethods
- Defined in:
- lib/dvelp_api_auth/helper_methods.rb
Instance Method Summary collapse
Instance Method Details
#blank?(instance) ⇒ Boolean
7 8 9 |
# File 'lib/dvelp_api_auth/helper_methods.rb', line 7 def blank?(instance) !present?(instance) end |
#present?(instance) ⇒ Boolean
3 4 5 |
# File 'lib/dvelp_api_auth/helper_methods.rb', line 3 def present?(instance) instance && !instance.to_s.empty? end |