Sha256: c042364cab02dc8562b1d3e02e0db8c6e3748ff9058ca443f86db527129f922e

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

module Vedeu

  # A module for common methods used throughout Vedeu.
  #
  # @api private
  module Common

    # Returns a boolean indicating whether a variable has a useful value.
    #
    # @param variable [String|Symbol|Array] The variable to check.
    # @return [Boolean]
    def defined_value?(variable)
      return true unless variable.nil? || variable.empty?

      false
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.2.1 lib/vedeu/support/common.rb