Class: Twb::WorksheetDataSource

Inherits:
Object
  • Object
show all
Defined in:
lib/twb/worksheet.rb

Overview

class Worksheet

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#captionObject (readonly)


246
247
248
# File 'lib/twb/worksheet.rb', line 246

def caption
  @caption
end

#nameObject (readonly)


246
247
248
# File 'lib/twb/worksheet.rb', line 246

def name
  @name
end

#nodeObject (readonly)


246
247
248
# File 'lib/twb/worksheet.rb', line 246

def node
  @node
end

#uinameObject (readonly)


246
247
248
# File 'lib/twb/worksheet.rb', line 246

def uiname
  @uiname
end