Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • tk/lib/tk/namespace.rb

Parent

Class/Module Index [+]

Quicksearch

TkNamespace::NsCode

Public Class Methods

new(scope, use_obj_id = false) click to toggle source
 
               # File tk/lib/tk/namespace.rb, line 189
def initialize(scope, use_obj_id = false)
  @scope = scope + ' '
  @use_obj_id = use_obj_id
end
            

Public Instance Methods

call(*args) click to toggle source
 
               # File tk/lib/tk/namespace.rb, line 199
def call(*args)
  ret = TkCore::INTERP._eval_without_enc(@scope + array2tk_list(args))
  if @use_obj_id
    ret = TkNamespace::Tk_NsCode_RetObjID_TBL.delete(ret.to_i)
  end
  ret
end
            
path() click to toggle source
 
               # File tk/lib/tk/namespace.rb, line 193
def path
  @scope
end
            
to_eval() click to toggle source
 
               # File tk/lib/tk/namespace.rb, line 196
def to_eval
  @scope
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.