Class: RubyXL::Border
Overview
Instance Method Summary
collapse
#define_attribute, #define_child_node, #define_element_name, #obtain_class_variable, #parse
#before_write_xml, #dup, #index_in_collection, #initialize, #write_xml
Instance Method Details
#==(other) ⇒ Object
38
39
40
41
42
43
44
45
46
47
48
49
|
# 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) ⇒ Object
29
30
31
32
|
# 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) ⇒ Object
34
35
36
|
# File 'lib/rubyXL/objects/border.rb', line 34
def set_edge_style(direction, style)
self.send("#{direction}=", RubyXL::BorderEdge.new(:style => style))
end
|