Class: RubyXL::FontContainer

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

Overview

Class Method Summary collapse

Methods inherited from OOXMLObject

#add_to_zip, #before_write_xml, define_attribute, define_child_node, define_element_name, #dup, filepath, #index_in_collection, #initialize, obtain_class_variable, parse, parse_file, set_countable, set_namespaces, #write_xml

Constructor Details

This class inherits a constructor from RubyXL::OOXMLObject

Class Method Details

.defaultsObject



101
102
103
104
105
106
107
108
# File 'lib/rubyXL/objects/font.rb', line 101

def self.defaults
  self.new(:fonts => [ 
             RubyXL::Font.new(:name => RubyXL::StringValue.new(:val => 'Verdana'),
                              :sz => RubyXL::FloatValue.new(:val => 10) ),
             RubyXL::Font.new(:name => RubyXL::StringValue.new(:val => 'Verdana'),
                              :sz => RubyXL::FloatValue.new(:val => 8) )
           ])
end