Sha256: d394f1dd8e68f702ee28448d40444779101050dbb5499a348f3e1dd969a7bc1c
Contents?: true
Size: 291 Bytes
Versions: 2
Compression:
Stored size: 291 Bytes
Contents
# frozen_string_literal: true class BCDD::Result class Type attr_reader :to_sym def initialize(type) @to_sym = type.to_sym end def in?(types, allow_empty: false) (allow_empty && types.empty?) || types.any?(to_sym) end end private_constant :Type end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bcdd-result-0.4.0 | lib/bcdd/result/type.rb |
bcdd-result-0.3.0 | lib/bcdd/result/type.rb |