Class: Axlsx::Builder::Format

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Format

Returns a new instance of Format.



38
39
40
41
42
# File 'lib/axlsx/builder.rb', line 38

def initialize(attrs={})
  @font = Font.new
  @alignment = Alignment.new
  super
end

Instance Attribute Details

#alignmentObject

Returns the value of attribute alignment.



36
37
38
# File 'lib/axlsx/builder.rb', line 36

def alignment
  @alignment
end

#border_thicknessObject

Returns the value of attribute border_thickness.



36
37
38
# File 'lib/axlsx/builder.rb', line 36

def border_thickness
  @border_thickness
end

#bordersObject

Returns the value of attribute borders.



36
37
38
# File 'lib/axlsx/builder.rb', line 36

def borders
  @borders
end

#colorObject

Returns the value of attribute color.



36
37
38
# File 'lib/axlsx/builder.rb', line 36

def color
  @color
end

#fontObject

Returns the value of attribute font.



36
37
38
# File 'lib/axlsx/builder.rb', line 36

def font
  @font
end

#styleObject

Returns the value of attribute style.



36
37
38
# File 'lib/axlsx/builder.rb', line 36

def style
  @style
end