File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
lib/rspec_api_documentation Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 77module RspecApiDocumentation
88 module DSL
99
10- # Custom describe block that sets metadata to enable the rest of RAD
11- #
12- # resource "Orders", :meta => :data do
13- # # ...
14- # end
15- #
16- # Params:
17- # +args+:: Glob of RSpec's `describe` arguments
18- # +block+:: Block to pass into describe
19- #
20- def resource ( *args , &block )
10+ # Custom describe block that sets metadata to enable the rest of RAD
11+ #
12+ # resource "Orders", :meta => :data do
13+ # # ...
14+ # end
15+ #
16+ # Params:
17+ # +args+:: Glob of RSpec's `describe` arguments
18+ # +block+:: Block to pass into describe
19+ #
20+ def resource ( *args , &block )
2121 options = if args . last . is_a? ( Hash ) then args . pop else { } end
2222 options [ :api_doc_dsl ] = :resource
2323 options [ :resource_name ] = args . first
You can’t perform that action at this time.
0 commit comments