Class: Ruby::Ods::Manager::Column
- Inherits:
-
Object
- Object
- Ruby::Ods::Manager::Column
- Defined in:
- lib/ruby/ods.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #attr(name) ⇒ Object
-
#initialize(content) ⇒ Column
constructor
A new instance of Column.
- #set_attr(name, value) ⇒ Object
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
#content ⇒ Object (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 |