Class: Xmlss::Element::Cell
- Inherits:
-
Object
- Object
- Xmlss::Element::Cell
- Defined in:
- lib/xmlss/element/cell.rb
Instance Attribute Summary collapse
-
#formula ⇒ Object
Returns the value of attribute formula.
-
#href ⇒ Object
(also: #h_ref)
Returns the value of attribute href.
-
#index ⇒ Object
Returns the value of attribute index.
-
#merge_across ⇒ Object
Returns the value of attribute merge_across.
-
#merge_down ⇒ Object
Returns the value of attribute merge_down.
-
#style_id ⇒ Object
(also: #style_i_d)
Returns the value of attribute style_id.
Instance Method Summary collapse
-
#initialize(attrs = {}, &build) ⇒ Cell
constructor
A new instance of Cell.
Constructor Details
#initialize(attrs = {}, &build) ⇒ Cell
Returns a new instance of Cell.
9 10 11 12 13 14 15 16 |
# File 'lib/xmlss/element/cell.rb', line 9 def initialize(attrs={}, &build) self.index = attrs[:index] self.style_id = attrs[:style_id] self.formula = attrs[:formula] self.href = attrs[:href] self.merge_across = attrs[:merge_across] || 0 self.merge_down = attrs[:merge_down] || 0 end |
Instance Attribute Details
#formula ⇒ Object
Returns the value of attribute formula.
5 6 7 |
# File 'lib/xmlss/element/cell.rb', line 5 def formula @formula end |
#href ⇒ Object Also known as: h_ref
Returns the value of attribute href.
5 6 7 |
# File 'lib/xmlss/element/cell.rb', line 5 def href @href end |
#index ⇒ Object
Returns the value of attribute index.
5 6 7 |
# File 'lib/xmlss/element/cell.rb', line 5 def index @index end |
#merge_across ⇒ Object
Returns the value of attribute merge_across.
5 6 7 |
# File 'lib/xmlss/element/cell.rb', line 5 def merge_across @merge_across end |
#merge_down ⇒ Object
Returns the value of attribute merge_down.
5 6 7 |
# File 'lib/xmlss/element/cell.rb', line 5 def merge_down @merge_down end |
#style_id ⇒ Object Also known as: style_i_d
Returns the value of attribute style_id.
5 6 7 |
# File 'lib/xmlss/element/cell.rb', line 5 def style_id @style_id end |