Class: Twb::WorksheetDataSource
- Inherits:
-
Object
- Object
- Twb::WorksheetDataSource
- Defined in:
- lib/twb/worksheet.rb
Instance Attribute Summary collapse
-
#caption ⇒ Object
readonly
–.
-
#name ⇒ Object
readonly
–.
-
#node ⇒ Object
readonly
–.
-
#uiname ⇒ Object
readonly
–.
Instance Method Summary collapse
-
#initialize(node) ⇒ WorksheetDataSource
constructor
–.
Constructor Details
#initialize(node) ⇒ WorksheetDataSource
–
126 127 128 129 130 131 |
# File 'lib/twb/worksheet.rb', line 126 def initialize node @node = node @caption = node.attr('caption') @name = node.attr('name').gsub(/^\[/,'').gsub(/\]$/,'') @uiname = if @caption.nil? || @caption == '' then @name else @caption end end |
Instance Attribute Details
#caption ⇒ Object (readonly)
–
124 125 126 |
# File 'lib/twb/worksheet.rb', line 124 def caption @caption end |
#name ⇒ Object (readonly)
–
124 125 126 |
# File 'lib/twb/worksheet.rb', line 124 def name @name end |
#node ⇒ Object (readonly)
–
124 125 126 |
# File 'lib/twb/worksheet.rb', line 124 def node @node end |
#uiname ⇒ Object (readonly)
–
124 125 126 |
# File 'lib/twb/worksheet.rb', line 124 def uiname @uiname end |