Watson1978
7/13/2012 - 2:11 AM

app_delegate.rb

class Foo
  attr_accessor :name
  
  def initialize
    @name = UILabel.alloc.initWithFrame([[0, 0], [10, 10]])
  end
end

class Bar < UITableViewCell
  attr_accessor :name
  
  def initialize
    @name = UILabel.alloc.initWithFrame([[0, 0], [10, 10]])
  end
end


class AppDelegate
  def application(application, didFinishLaunchingWithOptions:launchOptions)
    foo = Foo.new
    foo.name.text = "foo"
    p foo.name.text

    bar = Bar.new
    bar.name.text = "foo"
    p bar.name.text

    true
  end
end