[ 
https://issues.apache.org/jira/browse/THRIFT-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835126#action_12835126
 ] 

Michael Stockton commented on THRIFT-708:
-----------------------------------------

I think this would be a great feature. Though, to me, it only seems helpful for 
boolean fields. I guess I don't find string_field.nil? cumbersome. But 
bool_field == true is slightly annoying. Either way I'll be happy.

> Is set checking methods
> -----------------------
>
>                 Key: THRIFT-708
>                 URL: https://issues.apache.org/jira/browse/THRIFT-708
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (Ruby)
>    Affects Versions: 0.2
>            Reporter: Bryan Duxbury
>            Assignee: Bryan Duxbury
>            Priority: Minor
>             Fix For: 0.3
>
>
> It would be very useful to add some "is set checking" methods to our Ruby 
> generated structs. For instance if you have a struct with a field named 
> "blah", you generate a method called "blah?" that returns true if the blah 
> field is non-nil.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to