Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Generic boxed version of squeeze! should still work with no-arg list
  • Loading branch information
enebo committed Aug 29, 2011
1 parent b1991a9 commit e96d141
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/org/jruby/RubyString.java
Expand Up @@ -6039,6 +6039,8 @@ public IRubyObject squeeze_bang(ThreadContext context, IRubyObject arg) {

@JRubyMethod(name = "squeeze!", rest = true, compat = RUBY1_8)
public IRubyObject squeeze_bang(ThreadContext context, IRubyObject[] args) {
if (args.length == 0) return squeeze_bang(context);

Ruby runtime = context.getRuntime();
if (value.getRealSize() == 0) {
modifyCheck();
Expand Down

0 comments on commit e96d141

Please sign in to comment.