Closed markrickert closed 10 years ago
Looks great, thanks for keeping these specs thorough, Mark!
The only thing I would request here is an update to the README.
Ahh. Yeah, i can definitely update the readme.
Readme update is complete.
Nice! @clayallsopp @supermarin I'll defer to you guys for merging.
Looks good to me, will leave it for @clayallsopp to press the button
Not to throw a monkey wrench into this, but what about using an OpenStruct so you can use either the [:symbol] syntax or dot notation?
I could just wrap the hash in OpenStruct myself inside the block, though, so it's not a big deal.
While a nice idea, I was trying to mimic the functionality of the other methods in the location module. The other methods return hashes to the block, so I didn't want to deviate form that.
Looks like the other Location methods in particular return a hash, so yeah probably best to imitate that.
Ah, yeah, gotcha. I can do my OpenStruct magic myself. ;)
:+1: this is great, thanks @markrickert. apologies for the delay!
Returns a hash of a
CLHeading
object in the form of:Example usage:
or
Tests:
I added tests for the entire spectrum of this feature: