Class: Writexlsx::Format::AlignmentState

Inherits:
Object
  • Object
show all
Defined in:
lib/write_xlsx/format/alignment_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAlignmentState

Returns a new instance of AlignmentState.



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/write_xlsx/format/alignment_state.rb', line 12

def initialize
  @horizontal    = 0
  @vertical      = 0
  @wrap          = 0
  @justlast      = 0
  @rotation      = 0
  @indent        = 0
  @shrink        = 0
  @merge_range   = 0
  @reading_order = 0
  @just_distrib  = 0
end

Instance Attribute Details

#horizontalObject

Returns the value of attribute horizontal.



7
8
9
# File 'lib/write_xlsx/format/alignment_state.rb', line 7

def horizontal
  @horizontal
end

#indentObject

Returns the value of attribute indent.



7
8
9
# File 'lib/write_xlsx/format/alignment_state.rb', line 7

def indent
  @indent
end

#just_distribObject

Returns the value of attribute just_distrib.



7
8
9
# File 'lib/write_xlsx/format/alignment_state.rb', line 7

def just_distrib
  @just_distrib
end

#justlastObject

Returns the value of attribute justlast.



7
8
9
# File 'lib/write_xlsx/format/alignment_state.rb', line 7

def justlast
  @justlast
end

#merge_rangeObject

Returns the value of attribute merge_range.



7
8
9
# File 'lib/write_xlsx/format/alignment_state.rb', line 7

def merge_range
  @merge_range
end

#reading_orderObject

Returns the value of attribute reading_order.



7
8
9
# File 'lib/write_xlsx/format/alignment_state.rb', line 7

def reading_order
  @reading_order
end

#rotationObject

Returns the value of attribute rotation.



7
8
9
# File 'lib/write_xlsx/format/alignment_state.rb', line 7

def rotation
  @rotation
end

#shrinkObject

Returns the value of attribute shrink.



7
8
9
# File 'lib/write_xlsx/format/alignment_state.rb', line 7

def shrink
  @shrink
end

#verticalObject

Returns the value of attribute vertical.



7
8
9
# File 'lib/write_xlsx/format/alignment_state.rb', line 7

def vertical
  @vertical
end

#wrapObject

Returns the value of attribute wrap.



7
8
9
# File 'lib/write_xlsx/format/alignment_state.rb', line 7

def wrap
  @wrap
end

Instance Method Details

#initialize_copy(other) ⇒ Object



25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/write_xlsx/format/alignment_state.rb', line 25

def initialize_copy(other)
  @horizontal    = other.horizontal
  @vertical      = other.vertical
  @wrap          = other.wrap
  @justlast      = other.justlast
  @rotation      = other.rotation
  @indent        = other.indent
  @shrink        = other.shrink
  @merge_range   = other.merge_range
  @reading_order = other.reading_order
  @just_distrib  = other.just_distrib
end