Class: Ods::Cell
Instance Attribute Summary collapse
-
#no ⇒ Object
readonly
Returns the value of attribute no.
Instance Method Summary collapse
- #annotation ⇒ Object
- #annotation=(value) ⇒ Object
-
#initialize(content, no) ⇒ Cell
constructor
A new instance of Cell.
- #value ⇒ Object
- #value=(value) ⇒ Object
Constructor Details
#initialize(content, no) ⇒ Cell
Returns a new instance of Cell.
172 173 174 175 |
# File 'lib/ods.rb', line 172 def initialize(content, no) @content = content @no = no.to_sym end |
Instance Attribute Details
#no ⇒ Object (readonly)
Returns the value of attribute no.
170 171 172 |
# File 'lib/ods.rb', line 170 def no @no end |
Instance Method Details
#annotation ⇒ Object
185 186 187 |
# File 'lib/ods.rb', line 185 def annotation fetch('office:annotation/text:p').content end |
#annotation=(value) ⇒ Object
189 190 191 |
# File 'lib/ods.rb', line 189 def annotation=(value) fetch('office:annotation/text:p').content = value end |
#value ⇒ Object
177 178 179 |
# File 'lib/ods.rb', line 177 def value fetch('text:p').content end |
#value=(value) ⇒ Object
181 182 183 |
# File 'lib/ods.rb', line 181 def value=(value) fetch('text:p').content = value end |