Class: PPCurses::TableColumn

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#identifierObject

Returns the value of attribute identifier.



157
158
159
# File 'lib/ppcurses/table_view.rb', line 157

def identifier
  @identifier
end

#table_viewObject

Returns the value of attribute table_view.



159
160
161
# File 'lib/ppcurses/table_view.rb', line 159

def table_view
  @table_view
end

#widthObject

Returns the value of attribute width.



158
159
160
# File 'lib/ppcurses/table_view.rb', line 158

def width
  @width
end