diff --git a/src/org/jruby/RubyKernel.java b/src/org/jruby/RubyKernel.java index d913a65f108..6b8bfc7adcc 100644 --- a/src/org/jruby/RubyKernel.java +++ b/src/org/jruby/RubyKernel.java @@ -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); diff --git a/src/org/jruby/RubyModule.java b/src/org/jruby/RubyModule.java index 9765a5da286..0f7d4e3570c 100644 --- a/src/org/jruby/RubyModule.java +++ b/src/org/jruby/RubyModule.java @@ -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 getAncestorList() { ArrayList list = new ArrayList();