Sha256: 7634c53f331893b86052a3d90230aadfc9fb1b2b7a384c047bc9c463a808d0e4

Contents?: true

Size: 264 Bytes

Versions: 15

Compression:

Stored size: 264 Bytes

Contents

require 'ludy/message_dispatcher'

module Kernel
  # you can use defun for overloading(ad-hoc polymorphism),
  # multi-method, pattern matching, and perhaps others?
  def defun name, *args, &fun
    Ludy::MessageDispatcher.create self, name, args, &fun
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
godfat-ludy-0.1.13 lib/ludy/kernel/defun.rb
ludy-0.1.15 lib/ludy/kernel/defun.rb
ludy-0.1.2 lib/ludy/kernel/defun.rb
ludy-0.1.10 lib/ludy/kernel/defun.rb
ludy-0.1.13 lib/ludy/kernel/defun.rb
ludy-0.1.0 lib/ludy/kernel/defun.rb
ludy-0.1.1 lib/ludy/kernel/defun.rb
ludy-0.1.11 lib/ludy/kernel/defun.rb
ludy-0.1.4 lib/ludy/kernel/defun.rb
ludy-0.1.5 lib/ludy/kernel/defun.rb
ludy-0.1.3 lib/ludy/kernel/defun.rb
ludy-0.1.7 lib/ludy/kernel/defun.rb
ludy-0.1.6 lib/ludy/kernel/defun.rb
ludy-0.1.8 lib/ludy/kernel/defun.rb
ludy-0.1.9 lib/ludy/kernel/defun.rb