# File lib/typed-array.rb, line 11 def self.extended( mod ) unless mod <= Array raise UnexpectedTypeException.new( [Array], mod.class ) end mod.module_exec(self::Functions) do |functions_module| include functions_module end end