lib/rubyXL/objects/border.rb in rubyXL-2.1.1 vs lib/rubyXL/objects/border.rb in rubyXL-2.2.0
- old
+ new
@@ -1,13 +1,12 @@
require 'rubyXL/objects/ooxml_object'
+require 'rubyXL/objects/simple_types'
module RubyXL
class BorderEdge < OOXMLObject
- define_attribute(:style, :string)
- define_child_node(RubyXL::Color, :default => 'none', :values =>
- %w{ none thin medium dashed dotted thick double hair
- mediumDashed dashDot mediumDashDot dashDotDot slantDashDot } )
+ define_attribute(:style, RubyXL::ST_BorderStyle, :default => 'none')
+ define_child_node(RubyXL::Color)
def ==(other)
style == other.style
end
end