Module: Ruvi::EditorApp::BufferListExtension

Defined in:
lib/virtualbuffers.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#old_bufObject

Returns the value of attribute old_buf.



17
18
19
# File 'lib/virtualbuffers.rb', line 17

def old_buf
  @old_buf
end

Class Method Details

.clear_extension_buffers(app) ⇒ Object



24
25
26
# File 'lib/virtualbuffers.rb', line 24

def BufferListExtension.clear_extension_buffers app
    BaseFakeBufferModule.clear_extension_buffers app, BufferListExtension
end

.create_buffer(app) ⇒ Object



18
19
20
21
22
23
# File 'lib/virtualbuffers.rb', line 18

def BufferListExtension.create_buffer app
    clear_extension_buffers app
    b = BaseFakeBufferModule.new_ext_buffer app, BufferListExtension
    b.old_buf = app.current_buffer
    return b
end