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