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