@JRubyClass(name="Range")
public static class YAMLRangeMethods {
@JRubyMethod(name = "to_yaml_node", required = 1)
public static IRubyObject range_to_yaml_node(IRubyObject self, IRubyObject arg) {
ThreadContext context = self.getRuntime().getCurrentContext();
Map mep = (Map)(new RubyHash(self.getRuntime()));
mep.put(self.getRuntime().newString("begin"),self.callMethod(context, "begin"));
mep.put(self.getRuntime().newString("end"),self.callMethod(context, "end"));
mep.put(self.getRuntime().newString("excl"),self.callMethod(context, "exclude_end?"));
for(Iterator iter = ((RubyArray)self.callMethod(context, "to_yaml_properties")).getList().iterator(); iter.hasNext();) {