Examples of attr_accessor()


Examples of org.jruby.RubyModule.attr_accessor()

public class DummyService implements BasicLibraryService {
  public boolean basicLoad(final Ruby runtime) throws IOException {
    // define some attr accessors, to ensure they're public
    RubyModule dummy = runtime.getObject().defineClassUnder("XYZ_Dummy_XYZ", runtime.getObject(), runtime.getObject().getAllocator());
    dummy.attr_accessor(runtime.getCurrentContext(), new IRubyObject[]{runtime.newSymbol("dummy_attr")});
    return true;
  }
}
View Full Code Here

Examples of org.jruby.RubyModule.attr_accessor()

public class DummyService implements BasicLibraryService {
  public boolean basicLoad(final Ruby runtime) throws IOException {
    // define some attr accessors, to ensure they're public
    RubyModule dummy = runtime.getObject().defineClassUnder("XYZ_Dummy_XYZ", runtime.getObject(), runtime.getObject().getAllocator());
    dummy.attr_accessor(runtime.getCurrentContext(), new IRubyObject[]{runtime.newSymbol("dummy_attr")});
    return true;
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.