Simple pattern matching for Ruby Struct classes.