Sha256: 2510257504b1cb220108eafd73fdad2e6176c67590883a67e3857140fc8f064a

Contents?: true

Size: 629 Bytes

Versions: 5

Compression:

Stored size: 629 Bytes

Contents

# encoding: utf-8

require 'y_support'

# Typing library.
#
# Apart from typing objects <em>by class and ancestry</em> (+#kind_of?+),
# y_support typing library provides support for typing <em>by declaration</em>,
# and for runtime assertions.

directories_to_look_in = [ :typing ]

# The fololowing code looks into the specified directory(ies) and requires
# all the files in it (them).
# 
directories_to_look_in.each do |part|
  Dir["#{File.dirname( __FILE__ )}/#{part}/*/typing.rb"].sort.each { |path|
    dir = File.dirname( path ).match( "y_support/#{part}" ).post_match
    require "y_support/#{part}#{dir}/typing"
  }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
y_support-2.1.18 lib/y_support/typing.rb
y_support-2.1.17 lib/y_support/typing.rb
y_support-2.1.16 lib/y_support/typing.rb
y_support-2.1.13 lib/y_support/typing.rb
y_support-2.1.12 lib/y_support/typing.rb