Class: LivecodeServer::Scope
- Inherits:
-
Object
- Object
- LivecodeServer::Scope
- Defined in:
- lib/livecode_server/scope.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
- #include(mod) ⇒ Object
-
#initialize(server = nil) ⇒ Scope
constructor
A new instance of Scope.
- #puts(string) ⇒ Object
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_binding ⇒ Object
6 7 8 |
# File 'lib/livecode_server/scope.rb', line 6 def get_binding @__scope_binding ||= Proc.new {} end |
#include(mod) ⇒ Object
10 11 12 |
# File 'lib/livecode_server/scope.rb', line 10 def include(mod) self.class.send(:include, mod) end |
#puts(string) ⇒ Object
14 15 16 |
# File 'lib/livecode_server/scope.rb', line 14 def puts(string) @__server.output string end |