Class: Ods::Cell

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#noObject (readonly)

Returns the value of attribute no.



170
171
172
# File 'lib/ods.rb', line 170

def no
  @no
end

Instance Method Details

#annotationObject



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

#valueObject



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