Skip to content

Commit

Permalink
JRUBY-2808: Broken API in JRuby 1.1.3
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@7194 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
enebo committed Jul 16, 2008
1 parent f93956e commit a11b67f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/org/jruby/RubyKernel.java
Expand Up @@ -992,6 +992,11 @@ public static RubyProc proc(ThreadContext context, IRubyObject recv, Block block
return context.getRuntime().newProc(Block.Type.LAMBDA, block);
}

@Deprecated
public static RubyProc proc(IRubyObject recv, Block block) {
return recv.getRuntime().newProc(Block.Type.LAMBDA, block);
}

@JRubyMethod(name = {"lambda"}, frame = true, module = true, visibility = PRIVATE, compat = CompatVersion.RUBY1_9)
public static RubyProc lambda(ThreadContext context, IRubyObject recv, Block block) {
return context.getRuntime().newProc(Block.Type.LAMBDA, block);
Expand Down
5 changes: 5 additions & 0 deletions src/org/jruby/RubyModule.java
Expand Up @@ -1392,6 +1392,11 @@ public RubyArray included_modules(ThreadContext context) {
public RubyArray ancestors(ThreadContext context) {
return context.getRuntime().newArray(getAncestorList());
}

@Deprecated
public RubyArray ancestors() {
return getRuntime().newArray(getAncestorList());
}

public List<IRubyObject> getAncestorList() {
ArrayList<IRubyObject> list = new ArrayList<IRubyObject>();
Expand Down

0 comments on commit a11b67f

Please sign in to comment.