Class: Axlsx::Builder::Alignment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(horizontal: :left, vertical: :center) ⇒ Alignment

Returns a new instance of Alignment.



19
20
21
22
# File 'lib/axlsx/builder.rb', line 19

def initialize(horizontal: :left, vertical: :center)
  @horizontal = horizontal
  @vertical = vertical
end

Instance Attribute Details

#horizontalObject

Returns the value of attribute horizontal.



17
18
19
# File 'lib/axlsx/builder.rb', line 17

def horizontal
  @horizontal
end

#verticalObject

Returns the value of attribute vertical.



17
18
19
# File 'lib/axlsx/builder.rb', line 17

def vertical
  @vertical
end