Class: Canopus::MultiBuffer::Excerpt

Inherits:
Struct
  • Object
show all
Defined in:
lib/canopus/multi_buffer.rb,
sig/services.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#buffer ⇒ Object

Returns the value of attribute buffer

Returns:

  • (Object) —

    the current value of buffer



6
7
8
# File 'lib/canopus/multi_buffer.rb', line 6

def buffer
  @buffer
end

#first ⇒ Object

Returns the value of attribute first

Returns:

  • (Object) —

    the current value of first



6
7
8
# File 'lib/canopus/multi_buffer.rb', line 6

def first
  @first
end

#last ⇒ Object

Returns the value of attribute last

Returns:

  • (Object) —

    the current value of last



6
7
8
# File 'lib/canopus/multi_buffer.rb', line 6

def last
  @last
end

#title ⇒ Object

Returns the value of attribute title

Returns:

  • (Object) —

    the current value of title



6
7
8
# File 'lib/canopus/multi_buffer.rb', line 6

def title
  @title
end

#view_end ⇒ Object

Returns the value of attribute view_end

Returns:

  • (Object) —

    the current value of view_end



6
7
8
# File 'lib/canopus/multi_buffer.rb', line 6

def view_end
  @view_end
end

#view_start ⇒ Object

Returns the value of attribute view_start

Returns:

  • (Object) —

    the current value of view_start



6
7
8
# File 'lib/canopus/multi_buffer.rb', line 6

def view_start
  @view_start
end

Class Method Details

.new ⇒ instance

Parameters:

Returns:

  • (instance)


39
# File 'sig/services.rbs', line 39

def self.new: (Buffer buffer, Buffer::Anchor first, Buffer::Anchor last, String title, ?Integer? view_start, ?Integer? view_end) -> instance