Class: Axlsx::Builder::Font
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#name ⇒ Object
Returns the value of attribute name.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Font
constructor
A new instance of Font.
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
#color ⇒ Object
Returns the value of attribute color.
26 27 28 |
# File 'lib/axlsx/builder.rb', line 26 def color @color end |
#name ⇒ Object
Returns the value of attribute name.
26 27 28 |
# File 'lib/axlsx/builder.rb', line 26 def name @name end |
#size ⇒ Object
Returns the value of attribute size.
26 27 28 |
# File 'lib/axlsx/builder.rb', line 26 def size @size end |