Class: Textbringer::Commands::BufferPosition

Inherits:
Object
  • Object
show all
Defined in:
lib/textbringer/commands/register.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bufferObject (readonly)

Returns the value of attribute buffer.



4
5
6
# File 'lib/textbringer/commands/register.rb', line 4

def buffer
  @buffer
end

#markObject (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_sObject



11
12
13
# File 'lib/textbringer/commands/register.rb', line 11

def to_s
  @mark.location.to_s
end