class RubyXL::Border

www.schemacentral.com/sc/ooxml/e-ssml_border-2.html

Public Instance Methods

==(other) click to toggle source
# File lib/rubyXL/objects/border.rb, line 38
def ==(other)
  (diagonal_up == other.diagonal_up) &&
    (diagonal_down == other.diagonal_down) &&
    (outline == other.outline) &&
    (left == other.left) &&
    (right == other.right) &&
    (top == other.top) &&
    (bottom == other.bottom) &&
    (diagonal == other.diagonal) &&
    (vertical == other.vertical) &&
    (horizontal == other.horizontal)
end
get_edge_style(direction) click to toggle source
# File lib/rubyXL/objects/border.rb, line 29
def get_edge_style(direction)
  edge = self.send(direction)
  edge && edge.style
end
set_edge_style(direction, style) click to toggle source
# File lib/rubyXL/objects/border.rb, line 34
def set_edge_style(direction, style)
  self.send("#{direction}=", RubyXL::BorderEdge.new(:style => style))
end