Hi,

Can I define Objective-style interspersed-selector methods dynamically with 
define_method? 

I did this:

    class Foo
      # def foo(a, bar:b); puts a, b end
      define_method :"foo:bar" do |a, b| puts a, b end
    end
  
    Foo.new.foo(0, bar:1)

and it seems to work. Is that it, or did I miss anything?

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to