Class: Axlsx::Builder::Alignment
- Inherits:
-
Object
- Object
- Axlsx::Builder::Alignment
- Defined in:
- lib/axlsx/builder.rb
Instance Attribute Summary collapse
-
#horizontal ⇒ Object
Returns the value of attribute horizontal.
-
#vertical ⇒ Object
Returns the value of attribute vertical.
Instance Method Summary collapse
-
#initialize(horizontal: :left, vertical: :center) ⇒ Alignment
constructor
A new instance of Alignment.
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
#horizontal ⇒ Object
Returns the value of attribute horizontal.
17 18 19 |
# File 'lib/axlsx/builder.rb', line 17 def horizontal @horizontal end |
#vertical ⇒ Object
Returns the value of attribute vertical.
17 18 19 |
# File 'lib/axlsx/builder.rb', line 17 def vertical @vertical end |