# File lib/base_object.rb, line 146 def method_missing(method_name, *args) # First of all search throught array for method name m = search_for_method(method_name) if m.nil? if method_name == "valid_provider?""valid_provider?" return providers.any? { |p| p.keys.include? args.first.to_sym } end if method_name == "valid_provider_url?""valid_provider_url?" return providers.map { |p| !p.find { |k, v| v.find { |u| u[:url] == args.first } }.nil? } end super else # Call appropriate handler for method method_handler(m, args) end end