lib/rocx/properties/outline_level.rb in rocx-0.5.7 vs lib/rocx/properties/outline_level.rb in rocx-0.5.8

- old
+ new

@@ -1,23 +1,8 @@ module Rocx module Properties - class OutlineLevel < BaseProperty - - def valid? - value.is_a?(Integer) && value >= 0 - end - - def invalid_message - "Invalid value for #{name}; acceptable values are integers greater than or equal to 0" - end - - def tag - :outlineLvl - end - - def to_xml(xml) - xml["w"].public_send(tag, "w:val" => value) - end + class OutlineLevel < PositiveIntegerProperty + tag :outlineLvl end end end