Class: RuVim::TextMetrics::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/ruvim/text_metrics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_widthObject (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

#glyphObject (readonly)

Returns the value of attribute glyph.



8
9
10
# File 'lib/ruvim/text_metrics.rb', line 8

def glyph
  @glyph
end

#source_colObject (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