diff --git a/lib/parfait/layout.rb b/lib/parfait/layout.rb index b9d49301..a5e8d79e 100644 --- a/lib/parfait/layout.rb +++ b/lib/parfait/layout.rb @@ -83,6 +83,11 @@ module Parfait (1 + has / 2).to_i # to_i for opal end + def type_at index + type_index = index * 2 + get(type_index) + end + def inspect "Layout[#{super}]" end