Class: VER::Status::Position
- Defined in:
- lib/ver/status/position.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Label
#column, #format, #row, #status, #sticky, #variable, #weight
Instance Method Summary collapse
Methods inherited from Label
#buffer, #destroyed?, #initialize, #on_destroy, #register, #style=, #update
Methods included from LabelToggle
Constructor Details
This class inherits a constructor from VER::Status::Label
Instance Method Details
#setup ⇒ Object
4 5 6 |
# File 'lib/ver/status/position.rb', line 4 def setup register :position end |
#to_s ⇒ Object
8 9 10 11 12 13 |
# File 'lib/ver/status/position.rb', line 8 def to_s "%4d,%3d" % [ buffer.count('1.0', 'insert', :lines) + 1, buffer.count('insert linestart', 'insert', :displaychars) ] end |