Charles Oliver Nutter wrote:
I've added a couple enhancements over the past few weeks I figured I
should list here for discussion.
I like these features. Good job.
I had one thing that happened to me a few weeks ago that seemed a bit
strange. I'm writing unit tests for the Java parts of PKCS7, and the
central object have these kinds of methods:
isEnveloped();
getEnveloped();
setEnveloped();
The problem is that isEnveloped() is _not_ the same as getEnveloped().
in my code I used
p7.enveloped? and expected isEnveloped()
p7.enveloped and expected getEnveloped()
This used to work until some point 3 weeks ago. At that point
p7.enveloped started returning the same as p7.enveloped?.
Not sure what people think about this, but in this case I think my
intuition that get/set matches regular attributes, and is matches ? is
the right one. I should try to put together some specs on how I would
prefer this to work at some point. In the meantime, thoughts?
Cheers
--
Ola Bini (http://ola-bini.blogspot.com)
JRuby Core Developer
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)
"Yields falsehood when quined" yields falsehood when quined.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email