class Test__call__

Public Instance Methods

test_include_childclass() click to toggle source
# File core/lib/uithreadonly.rb, line 40
def test_include_childclass
  s = Class.new {
    def x; :x end }

  c = Class.new(s){
    include UiThreadOnly }

  s.new.x # => :x
  c.new.x # => :x
  Thread.new{ c.new.x }.join # => 

end
x() click to toggle source
# File core/lib/uithreadonly.rb, line 42
def x; :x end