Method: RubyXL::Border#set_edge_color
- Defined in:
- lib/rubyXL/objects/border.rb
#set_edge_color(direction, color) ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'lib/rubyXL/objects/border.rb', line 51 def set_edge_color(direction, color) edge = self.send(direction) if edge edge.set_rgb_color(color) else self.send("#{direction}=", RubyXL::BorderEdge.new) self.send(direction).set_rgb_color(color) end end |