Class: Xmlss::Element::Worksheet

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Worksheet

Returns a new instance of Worksheet.



13
14
15
16
17
18
# File 'lib/xmlss/element/worksheet.rb', line 13

def initialize(*args)
  attrs, self.name = [
    args.last.kind_of?(::Hash) ? args.pop : {},
    args.last
  ]
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/xmlss/element/worksheet.rb', line 11

def name
  @name
end

Class Method Details

.writerObject



9
# File 'lib/xmlss/element/worksheet.rb', line 9

def self.writer; :worksheet; end