packed_struct 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/packed_struct/package.rb +1 -1
- data/lib/packed_struct/version.rb +1 -1
- metadata +1 -1
@@ -41,7 +41,7 @@ module PackedStruct
|
|
41
41
|
|
42
42
|
mapped_directives = @directives.map(&:name)
|
43
43
|
|
44
|
-
values.select
|
44
|
+
values = values.select { |x| mapped_directives.include?(x[0]) }
|
45
45
|
|
46
46
|
values.sort! do |a, b|
|
47
47
|
o = mapped_directives.index(a[0]) <=> mapped_directives.index(b[0])
|