Class: Gitter::TableCell
- Inherits:
-
Object
- Object
- Gitter::TableCell
- Includes:
- ActionView::Helpers::NumberHelper
- Defined in:
- lib/gitter/table.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
- #formatted_content ⇒ Object
- #header? ⇒ Boolean
- #html(opts = {}) ⇒ Object
-
#initialize(x, y, content) ⇒ TableCell
constructor
A new instance of TableCell.
Constructor Details
#initialize(x, y, content) ⇒ TableCell
Returns a new instance of TableCell.
11 12 13 |
# File 'lib/gitter/table.rb', line 11 def initialize x, y, content @x, @y, @content = x, y, content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
9 10 11 |
# File 'lib/gitter/table.rb', line 9 def content @content end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
9 10 11 |
# File 'lib/gitter/table.rb', line 9 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
9 10 11 |
# File 'lib/gitter/table.rb', line 9 def y @y end |
Instance Method Details
#formatted_content ⇒ Object
23 24 25 |
# File 'lib/gitter/table.rb', line 23 def formatted_content number_with_delimiter content, delimiter: '.' end |
#header? ⇒ Boolean
19 20 21 |
# File 'lib/gitter/table.rb', line 19 def header? false end |