Welcome to iMore! What ruler are you referring to? I assume you're using a third party app and most of those apps will allow you to use either measurement system.
If you'd like to provide more detail, including what device you're using and which ruler app you're referring to, we'd be happy to help.