lib/vkontakte_api/client.rb
def method_missing(*args, &block)
      if Namespace.exists?(args.first)
        create_namespace(args.first)
      else
        call_method(args, &block)
      end
    end
# If the called method is a namespace, it creates and returns a new `VkontakteApi::Namespace` instance.
# Otherwise it creates a `VkontakteApi::Method` instance and calls it passing the arguments and a block.
If the called method is a namespace, it creates and returns a new `VkontakteApi::Namespace` instance.
Otherwise it creates a `VkontakteApi::Method` instance and calls it passing the arguments and a block.
If the called method is a namespace it creates and returns a new ` VkontakteApi :: Namespace ` instance . Otherwise it creates a ` VkontakteApi :: Method ` instance and calls it passing the arguments and a block .
def method_missing(*args, &block)
      if Namespace.exists?(args.first)
        create_namespace(args.first)
      else
        call_method(args, &block)
      end
    end
def method_missing ( * args , & block ) if Namespace . exists? ( args . first ) create_namespace ( args . first ) else call_method ( args , & block ) end end
If the called method is a namespace, it creates and returns a new `VkontakteApi::Namespace` instance.
If the called method is a namespace it creates and returns a new ` VkontakteApi :: Namespace ` instance .
args
block