Parent

Methods

Class/Module Index [+]

Quicksearch

Pager

Public Class Methods

new(path) click to toggle source
# File gtk2/sample/misc/bindings.rb, line 41
def initialize(path)
  @path = path
  super()
  @buffer = self.buffer
  load
  set_editable(false)
  set_size_request(400, 400)
end

Public Instance Methods

load() click to toggle source
# File gtk2/sample/misc/bindings.rb, line 50
def load
  open(@path).read.each_line do |line|
    @buffer.insert_at_cursor(line)
  end
  @buffer.place_cursor(@buffer.start_iter)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.