Sha256: bdf7d734268fc1c9be7c0d2ff858e3f2cd213c19998ec88145ac08bae022ff2a
Contents?: true
Size: 331 Bytes
Versions: 2
Compression:
Stored size: 331 Bytes
Contents
module DeathAndTaxes class TaxVersion attr_reader :starts, :ends, :percentage, :apply_on def initialize yml @starts = yml['starts'] @ends = yml['ends'] @percentage = yml['percentage'] @apply_on = yml['apply_on'] end def cover? date (@starts..@ends).cover? date end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
death_and_taxes-0.0.5 | lib/death_and_taxes/tax_version.rb |
death_and_taxes-0.0.4 | lib/death_and_taxes/tax_version.rb |