lib/swagger_yard.rb in swagger_yard-0.1.0 vs lib/swagger_yard.rb in swagger_yard-0.2.0
- old
+ new
@@ -9,10 +9,11 @@
require "swagger_yard/resource_listing"
require "swagger_yard/api_declaration"
require "swagger_yard/model"
require "swagger_yard/api"
require "swagger_yard/listing_info"
+require "swagger_yard/swagger"
module SwaggerYard
class << self
##
# Configuration for Swagger Yard, use like:
@@ -40,13 +41,9 @@
#
def yard_objects_from_file(file_path)
::YARD::Registry.clear
::YARD.parse(file_path)
::YARD::Registry.all
- end
-
- def yard_objects_from_resource(resource_name)
- yard_objects_from_file(resource_to_file_path[resource_name])
end
##
# Register some custom yard tags used by swagger-ui
def register_custom_yard_tags!