Class: Twb::Worksheet

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

Constant Summary collapse

@@hasher =
Digest::SHA256.new

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sheetNode) ⇒ Worksheet

Returns a new instance of Worksheet.



27
28
29
30
31
# File 'lib/twb/worksheet.rb', line 27

def initialize sheetNode
  @node    = sheetNode
  @name    = @node.attr('name')
  return self
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



25
26
27
# File 'lib/twb/worksheet.rb', line 25

def name
  @name
end

#nodeObject (readonly)

Returns the value of attribute node.



25
26
27
# File 'lib/twb/worksheet.rb', line 25

def node
  @node
end