diff options
Diffstat (limited to 'lib/apidoc/controller_dsl/endpoint.rb')
-rw-r--r-- | lib/apidoc/controller_dsl/endpoint.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/apidoc/controller_dsl/endpoint.rb b/lib/apidoc/controller_dsl/endpoint.rb deleted file mode 100644 index 18d4fe2..0000000 --- a/lib/apidoc/controller_dsl/endpoint.rb +++ /dev/null @@ -1,30 +0,0 @@ -module Apidoc - module ControllerDsl - module Endpoints - def get(endpoint) - _apidoc_endpoint(:get, endpoint) - end - - def post(endpoint) - _apidoc_endpoint(:post, endpoint) - end - - def _apidoc_endpoint(method, endpoint) - if _apidoc_endpoint_started? - raise DslError, "Previous endpoint #{_apidoc_current_endpoint} definition is not completed." - end - - self._apidoc_current_endpoint = Endpoint.new(method, endpoint) - end - - def description(description) - _apidoc_current_endpoint.description = description - end - - def nodoc - _apidoc_current_endpoint.nodoc = true - end - end - end -end - |