Sha256: 79545ace0d0ad0c9498136d80a2e050fb84afb3ebd3edd136b1bb4ad94e1b006

Contents?: true

Size: 141 Bytes

Versions: 13

Compression:

Stored size: 141 Bytes

Contents

module Formulario
  module Utils
    module_function

    def empty?(object)
      object.nil? || object.to_s.strip.empty?
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
formulario-0.1.12 lib/formulario/utils.rb
formulario-0.1.11 lib/formulario/utils.rb
formulario-0.1.10 lib/formulario/utils.rb
formulario-0.1.9 lib/formulario/utils.rb
formulario-0.1.8 lib/formulario/utils.rb
formulario-0.1.6 lib/formulario/utils.rb
formulario-0.1.5 lib/formulario/utils.rb
formulario-0.1.4 lib/formulario/utils.rb
formulario-0.1.3 lib/formulario/utils.rb
formulario-0.1.2 lib/formulario/utils.rb
formulario-0.1.1b lib/formulario/utils.rb
formulario-0.1.1 lib/formulario/utils.rb
formulario-0.1.0 lib/formulario/utils.rb