aboutsummaryrefslogtreecommitdiff
path: root/src/guff/api-docs-html-view.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/api-docs-html-view.cr')
-rw-r--r--src/guff/api-docs-html-view.cr14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/guff/api-docs-html-view.cr b/src/guff/api-docs-html-view.cr
index 5fdbd86..c0db5aa 100644
--- a/src/guff/api-docs-html-view.cr
+++ b/src/guff/api-docs-html-view.cr
@@ -1,7 +1,7 @@
require "html"
require "ecr/macros"
require "./page-html-view"
-require "./api-methods"
+require "./api/methods"
module Guff
class APIDocsHTMLView
@@ -14,20 +14,20 @@ module Guff
end
private def namespaces
- APIMethods::API.keys.sort
+ API::Methods::METHODS.keys.sort
end
private def methods(
namespace : String
)
- APIMethods::API[namespace].keys.sort
+ API::Methods::METHODS[namespace].keys.sort
end
private def method_text(
namespace : String,
method : String
)
- APIMethods::API[namespace][method][:text] as String
+ API::Methods::METHODS[namespace][method][:text] as String
end
private def method_args(
@@ -35,7 +35,7 @@ module Guff
method : String
)
if method_has_args?(namespace, method)
- args = APIMethods::API[namespace][method][:args] as \
+ args = API::Methods::METHODS[namespace][method][:args] as \
Hash(String, Hash(Symbol, String|Symbol|Bool)) | Nil
args.keys.sort
else
@@ -49,7 +49,7 @@ module Guff
name : String
) : String
if method_has_args?(namespace, method)
- arg = APIMethods::API[namespace][method][:args][name] as\
+ arg = API::Methods::METHODS[namespace][method][:args][name] as\
Hash(Symbol, String|Symbol|Bool)
arg[:text] as String
else
@@ -61,7 +61,7 @@ module Guff
namespace : String,
method : String
)
- APIMethods::API[namespace][method].has_key?(:args)
+ API::Methods::METHODS[namespace][method].has_key?(:args)
end
def h(s : String)