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



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

def get_rgb_color
  color && color.rgb
end

#set_rgb_color(font_color) ⇒ Object



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

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