Skip to content
Browse files

Catchall for user-defined schemas

Change-Id: I5237ca2bbe21b669e8747317651cf78965f111bd
  • Loading branch information...
1 parent 89b7035 commit 82c52313bdc2634054b7f4745e87e5e920f5e23c mpage committed May 15, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/membrane/schema_parser.rb
View
6 lib/membrane/schema_parser.rb
@@ -74,6 +74,12 @@ def deparse(schema)
"tuple(%s)" % [schema.elem_schemas.map { |es| deparse(es) }.join(", ")]
when Membrane::Schema::Value
schema.value.inspect
+ when Membrane::Schema::Base
+ if schema.respond_to?(:deparse)
+ schema.deparse
+ else
+ schema.inspect
+ end
else
schema.inspect
end

0 comments on commit 82c5231

Please sign in to comment.
Something went wrong with that request. Please try again.