Class: Osheet::Row
- Inherits:
-
Object
- Object
- Osheet::Row
- Includes:
- MetaElement, StyledElement
- Defined in:
- lib/osheet/row.rb
Instance Attribute Summary collapse
-
#cells ⇒ Object
readonly
Returns the value of attribute cells.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Instance Method Summary collapse
- #autofit(value = nil) ⇒ Object
- #autofit? ⇒ Boolean
- #cell(cell_obj) ⇒ Object
- #height(value = nil) ⇒ Object
- #hidden(value = nil) ⇒ Object
- #hidden? ⇒ Boolean
-
#initialize(height = nil) ⇒ Row
constructor
A new instance of Row.
Methods included from StyledElement
Methods included from MetaElement
Constructor Details
Instance Attribute Details
#cells ⇒ Object (readonly)
Returns the value of attribute cells.
11 12 13 |
# File 'lib/osheet/row.rb', line 11 def cells @cells end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
11 12 13 |
# File 'lib/osheet/row.rb', line 11 def format @format end |
Instance Method Details
#autofit(value = nil) ⇒ Object
25 26 27 |
# File 'lib/osheet/row.rb', line 25 def autofit(value=nil) value.nil? ? @autofit : @autofit = !!value end |
#autofit? ⇒ Boolean
28 |
# File 'lib/osheet/row.rb', line 28 def autofit?; @autofit; end |
#cell(cell_obj) ⇒ Object
35 36 37 |
# File 'lib/osheet/row.rb', line 35 def cell(cell_obj) @cells << cell_obj end |
#height(value = nil) ⇒ Object
21 22 23 |
# File 'lib/osheet/row.rb', line 21 def height(value=nil) value.nil? ? @height : @height = value end |
#hidden(value = nil) ⇒ Object
30 31 32 |
# File 'lib/osheet/row.rb', line 30 def hidden(value=nil) value.nil? ? @hidden : @hidden = !!value end |
#hidden? ⇒ Boolean
33 |
# File 'lib/osheet/row.rb', line 33 def hidden?; @hidden; end |