Method: RubyXL::Border#set_edge_style

Defined in:
lib/rubyXL/objects/border.rb

#set_edge_style(direction, style) ⇒ Object

[View source]

37
38
39
40
41
42
43
44
# 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