class Smartdict::Gui::TextView
Public Class Methods
new(controller)
click to toggle source
Calls superclass method
# File lib/smartdict/gui/text_view.rb, line 5 def initialize(controller) super(Buffer.new) @controller = controller self.editable = false end
Public Instance Methods
show_error(error)
click to toggle source
# File lib/smartdict/gui/text_view.rb, line 15 def show_error(error) buffer.set_error(error) end
show_translation(translation)
click to toggle source
# File lib/smartdict/gui/text_view.rb, line 11 def show_translation(translation) buffer.set_translation(translation) end