Sha256: db16db61fcea1f3e00b9d4a9b4e7358f365346d0ed4b060a113e46d589c198d1

Contents?: true

Size: 125 Bytes

Versions: 5

Compression:

Stored size: 125 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

5 entries across 5 versions & 1 rubygems

Version Path
hss-1.0.1 spec/test/good_helpers/default.rb
hss-1.0.0 spec/test/good_helpers/default.rb
hss-0.2.11 spec/test/good_helpers/default.rb
hss-0.2.10 spec/test/good_helpers/default.rb
hss-0.2.9 spec/test/good_helpers/default.rb