Browse Source

rm :type hack;

bjorn 1 year ago
parent
commit
73ca202e71
2 changed files with 2 additions and 8 deletions
  1. 1 1
      api/init.lua
  2. 1 7
      api/lovr/Object/init.lua

+ 1 - 1
api/init.lua

@@ -946,7 +946,7 @@ return {
         {
         {
           name = "Object",
           name = "Object",
           summary = "The base object.",
           summary = "The base object.",
-          description = "The superclass of all LÖVR objects.\n\nIn addition to the methods here, all objects have a `__tostring` metamethod that returns the name of the object's type.  So `tostring(object) == 'Blob'` will check if a LÖVR object is a Blob.",
+          description = "The superclass of all LÖVR objects.  All objects have these methods.",
           key = "Object",
           key = "Object",
           module = "lovr",
           module = "lovr",
           methods = {
           methods = {

+ 1 - 7
api/lovr/Object/init.lua

@@ -1,11 +1,5 @@
 return {
 return {
   summary = 'The base object.',
   summary = 'The base object.',
-  description = [[
-    The superclass of all LÖVR objects.
-
-    In addition to the methods here, all objects have a `__tostring` metamethod that returns the
-    name of the object's type.  So `tostring(object) == 'Blob'` will check if a LÖVR object is a
-    Blob.
-  ]],
+  description = 'The superclass of all LÖVR objects.  All objects have these methods.',
   notes = 'Note that the functions here don\'t apply to any vector objects, see `Vectors`.'
   notes = 'Note that the functions here don\'t apply to any vector objects, see `Vectors`.'
 }
 }