Class: RubyXL::BorderEdge

Inherits:
OOXMLObject show all
Defined in:
lib/rubyXL/objects/border.rb

Instance Attribute Summary

Attributes included from OOXMLObjectInstanceMethods

#local_namespaces

Instance Method Summary collapse

Methods included from OOXMLObjectInstanceMethods

#==, #before_write_xml, included, #index_in_collection, #init_child_nodes, #initialize, #write_xml

Instance Method Details

#get_rgb_color ⇒ Object



15
16
17
# File 'lib/rubyXL/objects/border.rb', line 15

def get_rgb_color
  color && color.rgb
end

#set_rgb_color(edge_color) ⇒ Object



11
12
13
# File 'lib/rubyXL/objects/border.rb', line 11

def set_rgb_color(edge_color)
  self.color = RubyXL::Color.new(:rgb => edge_color.to_s)
end