Rubymine doesn't understand Struct

Answered

I have this code:

```
RecordResult = Struct.new(:success?, :expense_id, :error_message)
```

and somewhere I use it like this:
```
RecordResult.new(true, 417, nil)
```

I got this error:
 

 

Click on “Go to type signature” go to the Struct's type signature.

0
1 comment

Hello,

We have a similar request on the tracker: https://youtrack.jetbrains.com/issue/RUBY-33645/RBS-Struct-and-Data-support

Could you please take a look and add your vote in case you find it related.

0

Please sign in to leave a comment.