In Files

  • tk/lib/multi-tk.rb

Class/Module Index [+]

Quicksearch

MultiTkIp_PseudoToplevel_Evaluable

dummy

Public Class Methods

extended(mod) click to toggle source
 
               # File tk/lib/multi-tk.rb, line 2058
def self.extended(mod)
  mod.__send__(:extend_object, mod)
  mod.instance_variable_set('@pseudo_toplevel_evaluable', true)
end
            

Public Instance Methods

pseudo_toplevel_evaluable=(mode) click to toggle source
 
               # File tk/lib/multi-tk.rb, line 2054
def pseudo_toplevel_evaluable=(mode)
  @pseudo_toplevel_evaluable = (mode)? true: false
end
            
pseudo_toplevel_evaluable?() click to toggle source

def pseudo_toplevel_eval(body = Proc.new)

Thread.current[:TOPLEVEL] = self
begin
  body.call
ensure
  Thread.current[:TOPLEVEL] = nil
end

end

 
               # File tk/lib/multi-tk.rb, line 2050
def pseudo_toplevel_evaluable?
  @pseudo_toplevel_evaluable
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.