Class: Contraction::SizedContainer

Inherits:
TypedContainer show all
Defined in:
lib/parser/type_parser.rb

Instance Attribute Summary

Attributes inherited from TypedContainer

#class_name, #type_list

Instance Method Summary collapse

Methods inherited from TypedContainer

#initialize, #works_as_a?

Constructor Details

This class inherits a constructor from Contraction::TypedContainer

Instance Method Details

#check(thing) ⇒ Object



124
125
126
# File 'lib/parser/type_parser.rb', line 124

def check(thing)
  super && thing.size == type_list.size
end