Class: Ruby::Ods::Manager::Cell
- Inherits:
-
Object
- Object
- Ruby::Ods::Manager::Cell
- Extended by:
- Forwardable
- Defined in:
- lib/ruby/ods.rb
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.
176 177 178 179 |
# File 'lib/ruby/ods.rb', line 176 def initialize(content, no) @content = content @no = no.to_sym end |
Instance Attribute Details
#no ⇒ Object (readonly)
Returns the value of attribute no.
174 175 176 |
# File 'lib/ruby/ods.rb', line 174 def no @no end |
Instance Method Details
#annotation ⇒ Object
189 190 191 |
# File 'lib/ruby/ods.rb', line 189 def annotation fetch('office:annotation/text:p').content end |
#annotation=(value) ⇒ Object
193 194 195 |
# File 'lib/ruby/ods.rb', line 193 def annotation=(value) fetch('office:annotation/text:p').content = value end |
#value ⇒ Object
181 182 183 |
# File 'lib/ruby/ods.rb', line 181 def value fetch('text:p').content end |
#value=(value) ⇒ Object
185 186 187 |
# File 'lib/ruby/ods.rb', line 185 def value=(value) fetch('text:p').content = value end |