Class: Ruby::Ods::Manager::Cell

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#noObject (readonly)

Returns the value of attribute no.



174
175
176
# File 'lib/ruby/ods.rb', line 174

def no
  @no
end

Instance Method Details

#annotationObject



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

#valueObject



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