Hi everyone,
This is just a quick query about using 'include' in an xcode project.
When creating an instance of a class, a 'require' statement is not needed 
beforehand, but to include a module, you must first require it.

#no need to require 'Foo'
x = Foo.new 

# must require 'Bar' beforehand
require 'bar'
include Bar 

Should this behaviour be more consistent?
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to