# File lib/countries/country/class_methods.rb, line 67 def respond_to_missing?(method_name, include_private = false) matches = method_name.to_s.match(FIND_BY_REGEX) if matches && matches[3] matches[3].all? { |a| instance_methods.include?(a.to_sym) } else super end end