Clarify documentation for isTrue, isFalse #1574

Merged
merged 2 commits into from Apr 1, 2014

Projects

None yet

3 participants

@nilbus
Contributor
nilbus commented Mar 22, 2014

BasicRubyObject.isTrue and .isFalse correspond to whether the RubyObject is truthy or falsy, not just whether or not it is an instance of TrueClass or FalseClass. This documentation change makes that clear.

I confirmed this by calling isTrue on a RubyString, which returned true.

nilbus added some commits Mar 22, 2014
@nilbus nilbus Clarify documentation for isTrue, isFalse
`BasicRubyObject.isTrue` and `.isFalse` correspond to whether the RubyObject is
truthy or falsy, not just whether or not it is an instance of TrueClass or
FalseClass. This documentation change makes that clear.

I confirmed this by calling `isTrue` on a RubyString, which returned true.
ba01bc2
@nilbus nilbus Use common spelling of falsey
Metric: rspec, google search result count for: `ruby "falsey"` and `ruby "falsy"`
e9aa98f
@enebo enebo merged commit 1c357ce into jruby:master Apr 1, 2014

1 check failed

default The Travis CI build could not complete due to an error
Details
@enebo enebo added this to the JRuby 9000 milestone Apr 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment