summaryrefslogtreecommitdiff
path: root/cad/rubygem-gdsii/files/patch-lib_gdsii_element.rb
blob: f0b48e9ab07c5a29546fdbe4170d04b141af5b96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- lib/gdsii/element.rb.orig	2016-05-16 07:41:38 UTC
+++ lib/gdsii/element.rb
@@ -56,13 +56,13 @@ module Gdsii
     def Element.read(file, *args)
       rec = Record.peek(file)
       case rec.type
-      when GRT_BOUNDARY : Boundary.read_el(file, *args)
-      when GRT_TEXT     : Text.read_el(file, *args)
-      when GRT_PATH     : Path.read_el(file, *args)
-      when GRT_SREF     : SRef.read_el(file, *args)
-      when GRT_AREF     : ARef.read_el(file, *args)
-      when GRT_BOX      : Box.read_el(file, *args)
-      when GRT_NODE     : Node.read_el(file, *args)
+      when GRT_BOUNDARY  then Boundary.read_el(file, *args)
+      when GRT_TEXT      then Text.read_el(file, *args)
+      when GRT_PATH      then Path.read_el(file, *args)
+      when GRT_SREF      then SRef.read_el(file, *args)
+      when GRT_AREF      then ARef.read_el(file, *args)
+      when GRT_BOX       then Box.read_el(file, *args)
+      when GRT_NODE      then Node.read_el(file, *args)
       else
         # end of the element, increment the counter and move on
         nil