Class: LivecodeServer::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/livecode_server/scope.rb

Instance Method Summary collapse

Constructor Details

#initialize(server = nil) ⇒ Scope

Returns a new instance of Scope.



3
4
5
# File 'lib/livecode_server/scope.rb', line 3

def initialize(server=nil)
  @__server = server
end

Instance Method Details

#get_bindingObject



6
7
8
# File 'lib/livecode_server/scope.rb', line 6

def get_binding
  @__scope_binding ||= Proc.new {}
end

#puts(string) ⇒ Object



10
11
12
# File 'lib/livecode_server/scope.rb', line 10

def puts(string)
  @__server.output string
end