Class: Ods::Column
- Inherits:
-
Object
- Object
- Ods::Column
- Defined in:
- lib/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.
196 197 198 |
# File 'lib/ods.rb', line 196 def initialize(content) @content = content end |
Instance Attribute Details
#content ⇒ Object (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 |