Skip to content

Commit

Permalink
ensure that ENV.to_h duplicates the env per MRI ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben-sutton committed Aug 5, 2015
1 parent 24fc995 commit cbd7296
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/main/java/org/jruby/RubyGlobal.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,12 @@ public IRubyObject to_s(){
return getRuntime().newString("ENV");
}

@JRubyMethod
public RubyHash to_h(){
return to_hash();
}


}

/**
Expand Down

0 comments on commit cbd7296

Please sign in to comment.