Method: Spreadsheet::Font#initialize
- Defined in:
- lib/spreadsheet/font.rb
#initialize(name, opts = {}) ⇒ Font
Returns a new instance of Font.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/spreadsheet/font.rb', line 63 def initialize name, opts = {} self.name = name @color = :text @previous_fast_key = nil @size = nil @weight = nil @italic = nil @strikeout = nil @outline = nil @shadow = nil @escapement = nil @underline = nil @family = nil @encoding = nil opts.each do |key, val| send :"#{key}=", val end end |