lib/axlsx/stylesheet/border_pr.rb in axlsx-1.3.1 vs lib/axlsx/stylesheet/border_pr.rb in axlsx-1.3.2
- old
+ new
@@ -1,10 +1,10 @@
# encoding: UTF-8
module Axlsx
# A border part.
class BorderPr
-
+ include Axlsx::OptionsParser
# @return [Color] The color of this border part.
attr_reader :color
# @return [Symbol] The syle of this border part.
# @note
@@ -43,12 +43,13 @@
# @option options [Color] color
# @option options [Symbol] name
# @option options [Symbol] style
# @see Axlsx::Border
def initialize(options={})
- options.each do |o|
- self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
- end
+ parse_options(options)
+ #options.each do |o|
+ # self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
+ #end
end
# @see name
def name=(v) RestrictionValidator.validate "BorderPr.name", [:start, :end, :left, :right, :top, :bottom, :diagonal, :vertical, :horizontal], v; @name = v end
# @see color