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, #initialize, #write_xml

Instance Method Details

#get_rgb_colorObject



13
14
15
# File 'lib/rubyXL/objects/border.rb', line 13

def get_rgb_color
  color && color.rgb
end

#set_rgb_color(font_color) ⇒ Object



9
10
11
# File 'lib/rubyXL/objects/border.rb', line 9

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