Class: Twb::WorksheetDataSource
- Inherits:
-
Object
- Object
- Twb::WorksheetDataSource
- Defined in:
- lib/twb/worksheet.rb
Overview
class Worksheet
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
–
248 249 250 251 252 253 |
# File 'lib/twb/worksheet.rb', line 248 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)
–
246 247 248 |
# File 'lib/twb/worksheet.rb', line 246 def @caption end |
#name ⇒ Object (readonly)
–
246 247 248 |
# File 'lib/twb/worksheet.rb', line 246 def name @name end |
#node ⇒ Object (readonly)
–
246 247 248 |
# File 'lib/twb/worksheet.rb', line 246 def node @node end |
#uiname ⇒ Object (readonly)
–
246 247 248 |
# File 'lib/twb/worksheet.rb', line 246 def uiname @uiname end |