Skip to content

Commit cbd7296

Browse files
committed
ensure that ENV.to_h duplicates the env per MRI ruby
1 parent 24fc995 commit cbd7296

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/main/java/org/jruby/RubyGlobal.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,12 @@ public IRubyObject to_s(){
338338
return getRuntime().newString("ENV");
339339
}
340340

341+
@JRubyMethod
342+
public RubyHash to_h(){
343+
return to_hash();
344+
}
345+
346+
341347
}
342348

343349
/**

0 commit comments

Comments
 (0)