Sha256: a33ca593c16b6b7e220fe74b85cef9c27ceadd6d6f58c24ab6bfc1abaac4cbe3

Contents?: true

Size: 648 Bytes

Versions: 35

Compression:

Stored size: 648 Bytes

Contents

#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

dir  = File.join(File.expand_path(File.dirname(__FILE__)), 'snippets')
glob = File.join(dir, '**', '*.rb')

Dir[glob].each do |snippet|
  require(snippet)
end

Ramaze::CoreExtensions.constants.each do |const|
  ext = Ramaze::CoreExtensions.const_get(const)
  into = Module.const_get(const)

  collisions = ext.instance_methods & into.instance_methods

  if collisions.empty?
    into.__send__(:include, ext)
  else
    warn "Won't include %p with %p, %p exists" % [into, ext, collisions]
  end
end

Version data entries

35 entries across 35 versions & 5 rubygems

Version Path
Pistos-ramaze-2008.09 lib/ramaze/snippets.rb
Pistos-ramaze-2008.12 lib/ramaze/snippets.rb
Pistos-ramaze-2009.01 lib/ramaze/snippets.rb
Pistos-ramaze-2009.02 lib/ramaze/snippets.rb
Pistos-ramaze-2009.04.08 lib/ramaze/snippets.rb
Pistos-ramaze-2009.06.12 lib/ramaze/snippets.rb
manveru-ramaze-2008.09 lib/ramaze/snippets.rb
manveru-ramaze-2008.10 lib/ramaze/snippets.rb
manveru-ramaze-2008.12 lib/ramaze/snippets.rb
manveru-ramaze-2009.01 lib/ramaze/snippets.rb
manveru-ramaze-2009.04.01 lib/ramaze/snippets.rb
manveru-ramaze-2009.04.08 lib/ramaze/snippets.rb
manveru-ramaze-2009.04.18 lib/ramaze/snippets.rb
manveru-ramaze-2009.04.22 lib/ramaze/snippets.rb
manveru-ramaze-2009.04 lib/ramaze/snippets.rb
manveru-ramaze-2009.05.08 lib/ramaze/snippets.rb
manveru-ramaze-2009.05 lib/ramaze/snippets.rb
manveru-ramaze-2009.06.04 lib/ramaze/snippets.rb
manveru-ramaze-2009.06.12 lib/ramaze/snippets.rb
manveru-ramaze-2009.06 lib/ramaze/snippets.rb