Minor refactorization of mixin
Minor refactorization of mixin

Made changes to make mixin more read-able, efficient and more re-usable.

to_int needed to be separated from SelectMixin to be used elsewhere.
jlane9/selenium_data_attributes,jlane9/selenium_data_attributes