Class: Ruby::Ods::Manager::Column

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Column

Returns a new instance of Column.



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

def initialize(content)
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



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

def content
  @content
end

Instance Method Details

#attr(name) ⇒ Object



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

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

#set_attr(name, value) ⇒ Object



208
209
210
# File 'lib/ruby/ods.rb', line 208

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