@JRubyMethod(name = "initialize_copy", required = 1, visibility = Visibility.PRIVATE) @Override public IRubyObject initialize_copy(IRubyObject other) { RubyBinding otherBinding = (RubyBinding)other; binding = otherBinding.binding.clone(); return this; }
public Block cloneBlockAndBinding() { Block newBlock = new Block(body, binding.clone()); newBlock.type = type; newBlock.escapeBlock = this; return newBlock; }
public Block cloneBlockAndBinding() { Block newBlock = new Block(body, binding.clone()); newBlock.type = type; newBlock.escapeBlock = this; return newBlock; }
@JRubyMethod(name = "initialize_copy", required = 1, visibility = Visibility.PRIVATE) @Override public IRubyObject initialize_copy(IRubyObject other) { RubyBinding otherBinding = (RubyBinding)other; binding = otherBinding.binding.clone(); return this; }
@JRubyMethod(name = "initialize_copy", required = 1, visibility = Visibility.PRIVATE) @Override public IRubyObject initialize_copy(IRubyObject other) { RubyBinding otherBinding = (RubyBinding)other; binding = otherBinding.binding.clone(); return this; }
@JRubyMethod(name = "initialize_copy", required = 1, visibility = Visibility.PRIVATE) @Override public IRubyObject initialize_copy(IRubyObject other) { RubyBinding otherBinding = (RubyBinding)other; binding = otherBinding.binding.clone(); return this; }
public Block cloneBlock(Binding binding) { // We clone dynamic scope because this will be a new instance of a block. Any previously // captured instances of this block may still be around and we do not want to start // overwriting those values when we create a new one. // ENEBO: Once we make self, lastClass, and lastMethod immutable we can remove duplicate return new Block(this, binding.clone()); } }
public Block cloneBlock(Binding binding) { // We clone dynamic scope because this will be a new instance of a block. Any previously // captured instances of this block may still be around and we do not want to start // overwriting those values when we create a new one. // ENEBO: Once we make self, lastClass, and lastMethod immutable we can remove duplicate return new Block(this, binding.clone()); } }
public Block cloneBlock(Binding binding) { return new Block(this, binding.clone()); }
public Block cloneBlock(Binding binding) { return new Block(this, binding.clone()); }
public Block cloneBlock(Binding binding) { return new Block(this, binding.clone()); }
public Block cloneBlock(Binding binding) { return new Block(this, binding.clone()); }