Permalink
Browse files

Alphabetize case statements

Change-Id: I3e936e45892eeaf3a5b51fb265440fb103d8bb68
  • Loading branch information...
1 parent 67b98a5 commit 89b7035a1468a79ceb6eaa86669072cae3f68080 mpage committed May 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/membrane/schema_parser.rb
@@ -53,8 +53,6 @@ def parse(&blk)
def deparse(schema)
case schema
- when Membrane::Schema::Value
- schema.value.inspect
when Membrane::Schema::Any
"any"
when Membrane::Schema::Bool
@@ -74,6 +72,8 @@ def deparse(schema)
schema.regexp.inspect
when Membrane::Schema::Tuple
"tuple(%s)" % [schema.elem_schemas.map { |es| deparse(es) }.join(", ")]
+ when Membrane::Schema::Value
+ schema.value.inspect
else
schema.inspect
end

0 comments on commit 89b7035

Please sign in to comment.