Class: Writexlsx::Format::BorderState
- Inherits:
-
Object
- Object
- Writexlsx::Format::BorderState
- Defined in:
- lib/write_xlsx/format/border_state.rb
Instance Attribute Summary collapse
-
#bottom ⇒ Object
Returns the value of attribute bottom.
-
#bottom_color ⇒ Object
Returns the value of attribute bottom_color.
-
#count ⇒ Object
Returns the value of attribute count.
-
#diag_border ⇒ Object
Returns the value of attribute diag_border.
-
#diag_color ⇒ Object
Returns the value of attribute diag_color.
-
#diag_type ⇒ Object
Returns the value of attribute diag_type.
-
#index ⇒ Object
Returns the value of attribute index.
-
#left ⇒ Object
Returns the value of attribute left.
-
#left_color ⇒ Object
Returns the value of attribute left_color.
-
#right ⇒ Object
Returns the value of attribute right.
-
#right_color ⇒ Object
Returns the value of attribute right_color.
-
#top ⇒ Object
Returns the value of attribute top.
-
#top_color ⇒ Object
Returns the value of attribute top_color.
Instance Method Summary collapse
-
#initialize ⇒ BorderState
constructor
A new instance of BorderState.
- #initialize_copy(other) ⇒ Object
Constructor Details
#initialize ⇒ BorderState
Returns a new instance of BorderState.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/write_xlsx/format/border_state.rb', line 14 def initialize @index = 0 @count = 0 @bottom = 0 @bottom_color = 0x0 @diag_border = 0 @diag_color = 0x0 @diag_type = 0 @left = 0 @left_color = 0x0 @right = 0 @right_color = 0x0 @top = 0 @top_color = 0x0 end |
Instance Attribute Details
#bottom ⇒ Object
Returns the value of attribute bottom.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def bottom @bottom end |
#bottom_color ⇒ Object
Returns the value of attribute bottom_color.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def bottom_color @bottom_color end |
#count ⇒ Object
Returns the value of attribute count.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def count @count end |
#diag_border ⇒ Object
Returns the value of attribute diag_border.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def diag_border @diag_border end |
#diag_color ⇒ Object
Returns the value of attribute diag_color.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def diag_color @diag_color end |
#diag_type ⇒ Object
Returns the value of attribute diag_type.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def diag_type @diag_type end |
#index ⇒ Object
Returns the value of attribute index.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def index @index end |
#left ⇒ Object
Returns the value of attribute left.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def left @left end |
#left_color ⇒ Object
Returns the value of attribute left_color.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def left_color @left_color end |
#right ⇒ Object
Returns the value of attribute right.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def right @right end |
#right_color ⇒ Object
Returns the value of attribute right_color.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def right_color @right_color end |
#top ⇒ Object
Returns the value of attribute top.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def top @top end |
#top_color ⇒ Object
Returns the value of attribute top_color.
7 8 9 |
# File 'lib/write_xlsx/format/border_state.rb', line 7 def top_color @top_color end |
Instance Method Details
#initialize_copy(other) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/write_xlsx/format/border_state.rb', line 30 def initialize_copy(other) @index = other.index @count = other.count @bottom = other.bottom @bottom_color = other.bottom_color @diag_border = other.diag_border @diag_color = other.diag_color @diag_type = other.diag_type @left = other.left @left_color = other.left_color @right = other.right @right_color = other.right_color @top = other.top @top_color = other.top_color end |