[
https://issues.apache.org/jira/browse/THRIFT-708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bryan Duxbury updated THRIFT-708:
---------------------------------
Attachment: thrift-708.patch
This patch adds the suggested methods. At the same time, it reorganizes how
field accessors and these qmark methods are created - rather than relying on
the compiler generating a list of field names, instead the field names are
determined at runtime through a single "generate_accessors" method. This gives
us a bit more flexibility to add new accessor types to structs without
requiring code regeneration.
> 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
>
> Attachments: thrift-708.patch
>
>
> 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.