def method_missing(m, *array)
      endpoint = Scale.descendants(Scale::Endpoints::Endpoint).find { |e| e.match? m }
      return endpoint.new(self, *array).process if endpoint
      super
    end
def method_missing(m, *array)
      endpoint = Scale.descendants(Scale::Endpoints::Endpoint).find { |e| e.match? m }
      return endpoint.new(self, *array).process if endpoint
      super
    end
Endpoint helper. If the method is not defined, then try looking into the available endpoints.