Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d17628a30813
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 07ad439b7261
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 2, 2016

  1. Copy the full SHA
    fa6a300 View commit details
  2. Copy the full SHA
    07ad439 View commit details
Showing with 5 additions and 0 deletions.
  1. +1 −0 core/src/main/java/org/jruby/RubyIO.java
  2. +4 −0 spec/ruby/core/io/inspect_spec.rb
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/RubyIO.java
Original file line number Diff line number Diff line change
@@ -2567,6 +2567,7 @@ public static IRubyObject write(ThreadContext context, IRubyObject maybeIO, IRub
return sites(context).write.call(context, maybeIO, maybeIO, str);
}

@JRubyMethod
@Override
public IRubyObject inspect() {
Ruby runtime = getRuntime();
4 changes: 4 additions & 0 deletions spec/ruby/core/io/inspect_spec.rb
Original file line number Diff line number Diff line change
@@ -16,4 +16,8 @@
@r.close
@r.inspect.should include("(closed)")
end

it "reports IO as its Method object's owner" do
IO.instance_method(:inspect).owner.should == IO
end
end