Class: RubyXL::Border

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

Overview

Instance Method Summary collapse

Methods included from OOXMLObjectInstanceMethods

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

Instance Method Details

#get_edge_style(direction) ⇒ Object



25
26
27
28
# File 'lib/rubyXL/objects/border.rb', line 25

def get_edge_style(direction)
  edge = self.send(direction)
  edge && edge.style
end

#set_edge_style(direction, style) ⇒ Object



30
31
32
# File 'lib/rubyXL/objects/border.rb', line 30

def set_edge_style(direction, style)
  self.send("#{direction}=", RubyXL::BorderEdge.new(:style => style))
end