lib/zebra/epl/printable.rb in zebra-epl-0.0.1 vs lib/zebra/epl/printable.rb in zebra-epl-0.0.2

- old
+ new

@@ -27,13 +27,17 @@ @rotation || Rotation::NO_ROTATION end private + def has_data? + true + end + def check_attributes raise MissingAttributeError.new("the X value is not given") unless @x raise MissingAttributeError.new("the Y value is not given") unless @y - raise MissingAttributeError.new("the data to be printed is not given") unless @data + raise MissingAttributeError.new("the data to be printed is not given") unless @data || !has_data? end end end end