Class: Ichabod::Delegate::UI

Inherits:
Object
  • Object
show all
Defined in:
lib/ichabod/delegate/ui.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(runtime) ⇒ UI

Returns a new instance of UI.



6
7
8
# File 'lib/ichabod/delegate/ui.rb', line 6

def initialize(runtime)
  @runtime = runtime
end

Instance Attribute Details

#runtimeObject (readonly)

Returns the value of attribute runtime.



4
5
6
# File 'lib/ichabod/delegate/ui.rb', line 4

def runtime
  @runtime
end

Instance Method Details

#webView(webView, addMessageToConsole: message) ⇒ Object



10
11
12
13
14
# File 'lib/ichabod/delegate/ui.rb', line 10

def webView(webView, addMessageToConsole:message)
  puts message[:sourceURL] + ":" + 
       message[:lineNumber].to_s + " " + 
       message[:message]
end