Class: Textbringer::Commands::BufferPosition
- Inherits:
-
Object
- Object
- Textbringer::Commands::BufferPosition
- Defined in:
- lib/textbringer/commands/register.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
readonly
Returns the value of attribute buffer.
-
#mark ⇒ Object
readonly
Returns the value of attribute mark.
Instance Method Summary collapse
-
#initialize(buffer, mark) ⇒ BufferPosition
constructor
A new instance of BufferPosition.
- #to_s ⇒ Object
Constructor Details
#initialize(buffer, mark) ⇒ BufferPosition
Returns a new instance of BufferPosition.
6 7 8 9 |
# File 'lib/textbringer/commands/register.rb', line 6 def initialize(buffer, mark) @buffer = buffer @mark = mark end |
Instance Attribute Details
#buffer ⇒ Object (readonly)
Returns the value of attribute buffer.
4 5 6 |
# File 'lib/textbringer/commands/register.rb', line 4 def buffer @buffer end |
#mark ⇒ Object (readonly)
Returns the value of attribute mark.
4 5 6 |
# File 'lib/textbringer/commands/register.rb', line 4 def mark @mark end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/textbringer/commands/register.rb', line 11 def to_s @mark.location.to_s end |