class RubyXL::Border
Public Instance Methods
get_edge_color(direction)
click to toggle source
# File lib/rubyXL/objects/border.rb, line 46 def get_edge_color(direction) edge = self.send(direction) edge && edge.get_rgb_color end
get_edge_style(direction)
click to toggle source
# File lib/rubyXL/objects/border.rb, line 32 def get_edge_style(direction) edge = self.send(direction) edge && edge.style end
set_edge_color(direction, color)
click to toggle source
# 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
set_edge_style(direction, style)
click to toggle source
# File lib/rubyXL/objects/border.rb, line 37 def set_edge_style(direction, style) edge = self.send(direction) if edge edge.style = style else self.send("#{direction}=", RubyXL::BorderEdge.new(:style => style)) end end