We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The valid? method returns lat && lng which returns the first failed value or last value instead of a boolean as the documentation states.
lat && lng
Geokit::LatLng.new(nil,nil).valid? # => nil Geokit::LatLng.new().valid? # => nil Geokit::LatLng.new(49.0, -123.0).valid? # => -123.0 Geokit::LatLng.new(49.0, nil).valid? # => nil Geokit::LatLng.new(nil, -123.0).valid? # => nil
!!(lat && lng) would work though.
!!(lat && lng)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The valid? method returns
lat && lng
which returns the first failed value or last value instead of a boolean as the documentation states.!!(lat && lng)
would work though.The text was updated successfully, but these errors were encountered: