Class: Ods::Column

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Column

Returns a new instance of Column.



196
197
198
# File 'lib/ods.rb', line 196

def initialize(content)
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



195
196
197
# File 'lib/ods.rb', line 195

def content
  @content
end

Instance Method Details

#attr(name) ⇒ Object



200
201
202
# File 'lib/ods.rb', line 200

def attr(name)
  @content['number-columns-' + name]
end

#set_attr(name, value) ⇒ Object



204
205
206
# File 'lib/ods.rb', line 204

def set_attr(name, value)
  @content['table:number-columns-' + name] = value.to_s
end