Class: Axlsx::Builder::Font

Inherits:
Object
  • Object
show all
Defined in:
lib/axlsx/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Font

Returns a new instance of Font.



28
29
30
31
32
# File 'lib/axlsx/builder.rb', line 28

def initialize(attrs={})
  @name = 'Liberation Sans'
  @size = 10
  super
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



26
27
28
# File 'lib/axlsx/builder.rb', line 26

def color
  @color
end

#nameObject

Returns the value of attribute name.



26
27
28
# File 'lib/axlsx/builder.rb', line 26

def name
  @name
end

#sizeObject

Returns the value of attribute size.



26
27
28
# File 'lib/axlsx/builder.rb', line 26

def size
  @size
end