Skip to content

Instantly share code, notes, and snippets.

@headius
Created January 18, 2022 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/5df95b27eceb151257234e0e68b2f842 to your computer and use it in GitHub Desktop.
Save headius/5df95b27eceb151257234e0e68b2f842 to your computer and use it in GitHub Desktop.
diff --git a/src/main/java/fishwife/IOUtil.java b/src/main/java/fishwife/IOUtil.java
index ee874b5..dcc0760 100644
--- a/src/main/java/fishwife/IOUtil.java
+++ b/src/main/java/fishwife/IOUtil.java
@@ -32,7 +32,7 @@ import org.jruby.RubyString;
import org.jruby.anno.JRubyClass;
import org.jruby.anno.JRubyMethod;
import org.jruby.javasupport.util.RuntimeHelpers;
-import org.jruby.runtime.Arity;
+import org.jruby.runtime.Signature;
import org.jruby.runtime.Block;
import org.jruby.runtime.BlockCallback;
import org.jruby.runtime.CallBlock;
@@ -115,7 +115,7 @@ public class IOUtil
RuntimeHelpers.invoke( tc, body, "each",
CallBlock.newCallClosure( klazz,
tc.getRuntime().getEnumerable(),
- Arity.ONE_ARGUMENT,
+ Signature.ONE_ARGUMENT,
new AppendBlockCallback( tc.getRuntime(),
ostream ),
tc ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment