Module: Zebra::Epl::BaseMultiplier
- Included in:
- HorizontalMultiplier, VerticalMultiplier
- Defined in:
- lib/zebra/epl/multipliers.rb
Defined Under Namespace
Classes: InvalidMultiplierError
Constant Summary collapse
- VALUE_1 =
1
- VALUE_2 =
2
- VALUE_3 =
3
- VALUE_4 =
4
- VALUE_5 =
5
- VALUE_6 =
6
- VALUE_7 =
7
- VALUE_8 =
8
Class Method Summary collapse
Class Method Details
.included(base_module) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/zebra/epl/multipliers.rb', line 15 def self.included(base_module) base_module.instance_eval do def validate_multiplier(multiplier) raise InvalidMultiplierError unless valid_multiplier?(multiplier) end end end |