class Eth::Address

def matches_any_format?

Checks whether the address matches any known format.
def matches_any_format?
  address.match /\A(?:0[xX])[a-fA-F0-9]{40}\z/
end