lib/apipie_dsl/dsl.rb in apipie-dsl-2.1.1 vs lib/apipie_dsl/dsl.rb in apipie-dsl-2.2.0
- old
+ new
@@ -173,9 +173,13 @@
def aliases(*names)
dsl_data[:aliases] = names
end
+ def signature(*signature)
+ dsl_data[:signature] = signature
+ end
+
# Describe possible errors
#
# Example:
# raises :desc => "wrong argument", :error => ArgumentError, :meta => [:some, :more, :data]
# raises ArgumentError, "wrong argument"