Skip to content

Commit

Permalink
[fix] FFI type's (builtin) inspect (#6029)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahorek authored and kares committed Jan 12, 2020
1 parent 5b92245 commit c87c145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/ext/ffi/Type.java
Expand Up @@ -185,8 +185,8 @@ private Builtin(Ruby runtime, RubyClass klass, NativeType nativeType, String sym
this.sym = runtime.newSymbol(symName);
}

@JRubyMethod(name = "to_s")
public final IRubyObject to_s(ThreadContext context) {
@JRubyMethod(name = "inspect")
public final IRubyObject inspect(ThreadContext context) {
return RubyString.newString(context.runtime,
String.format("#<FFI::Type::Builtin:%s size=%d alignment=%d>",
nativeType.name(), size, alignment));
Expand Down

0 comments on commit c87c145

Please sign in to comment.