Sha256: 8c3771d7f0976a1c8f63eb213433883656f5569663eb94ff9ef4437789439b74

Contents?: true

Size: 126 Bytes

Versions: 3

Compression:

Stored size: 126 Bytes

Contents

##
# Provides a helper to have default values

class HSS::Parser
  def default(a, b)
    a.nil? || a.empty? ? b : a
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hss-0.2.8 spec/test/good_helpers/default.rb
hss-0.2.6 spec/test/good_helpers/default.rb
hss-0.2.5 spec/test/good_helpers/default.rb