class RubyXL::Border
Public Instance Methods
Source
# File lib/rubyXL/objects/border.rb, line 51 def get_edge_color(direction) edge = self.send(direction) edge && edge.get_rgb_color end
Source
# File lib/rubyXL/objects/border.rb, line 32 def get_edge_style(direction) edge = self.send(direction) edge && edge.style end
Source
# File lib/rubyXL/objects/border.rb, line 56 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
Source
# File lib/rubyXL/objects/border.rb, line 37 def set_edge_style(direction, style, diagonals = nil) edge = self.send(direction) if edge edge.style = style else self.send("#{direction}=", RubyXL::BorderEdge.new(:style => style)) end if diagonals then self.diagonal_up = true if diagonals.index(:diagonal_up) self.diagonal_down = true if diagonals.index(:diagonal_down) end end