Class: PPCurses::TableColumn
- Inherits:
-
Object
- Object
- PPCurses::TableColumn
- Defined in:
- lib/ppcurses/table_view.rb
Overview
Based loosely on … developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTableColumn_Class/index.html#//apple_ref/swift/cl/NSTableColumn
The TableColumn class stores the display characteristics and identifier for a column
in a TableView instance. A table column object determines the width of its column.
Instance Attribute Summary collapse
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#table_view ⇒ Object
Returns the value of attribute table_view.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(identifier, width = 5) ⇒ TableColumn
constructor
A new instance of TableColumn.
Constructor Details
#initialize(identifier, width = 5) ⇒ TableColumn
Returns a new instance of TableColumn.
161 162 163 164 |
# File 'lib/ppcurses/table_view.rb', line 161 def initialize( identifier, width = 5 ) @identifier = identifier @width = width end |
Instance Attribute Details
#identifier ⇒ Object
Returns the value of attribute identifier.
157 158 159 |
# File 'lib/ppcurses/table_view.rb', line 157 def identifier @identifier end |
#table_view ⇒ Object
Returns the value of attribute table_view.
159 160 161 |
# File 'lib/ppcurses/table_view.rb', line 159 def table_view @table_view end |
#width ⇒ Object
Returns the value of attribute width.
158 159 160 |
# File 'lib/ppcurses/table_view.rb', line 158 def width @width end |