Class: RuVim::TextMetrics::Cell
- Inherits:
-
Object
- Object
- RuVim::TextMetrics::Cell
- Defined in:
- lib/ruvim/text_metrics.rb
Instance Attribute Summary collapse
-
#display_width ⇒ Object
readonly
Returns the value of attribute display_width.
-
#glyph ⇒ Object
readonly
Returns the value of attribute glyph.
-
#source_col ⇒ Object
readonly
Returns the value of attribute source_col.
Instance Method Summary collapse
-
#initialize(glyph, source_col, display_width) ⇒ Cell
constructor
A new instance of Cell.
Constructor Details
#initialize(glyph, source_col, display_width) ⇒ Cell
Returns a new instance of Cell.
10 11 12 13 14 |
# File 'lib/ruvim/text_metrics.rb', line 10 def initialize(glyph, source_col, display_width) @glyph = glyph @source_col = source_col @display_width = display_width end |
Instance Attribute Details
#display_width ⇒ Object (readonly)
Returns the value of attribute display_width.
8 9 10 |
# File 'lib/ruvim/text_metrics.rb', line 8 def display_width @display_width end |
#glyph ⇒ Object (readonly)
Returns the value of attribute glyph.
8 9 10 |
# File 'lib/ruvim/text_metrics.rb', line 8 def glyph @glyph end |
#source_col ⇒ Object (readonly)
Returns the value of attribute source_col.
8 9 10 |
# File 'lib/ruvim/text_metrics.rb', line 8 def source_col @source_col end |