Sha256: 65d49755f7a86b11de2d4a8cf83e0ae111bad3cc0356ad5bfa1d577cd90f64fb

Contents?: true

Size: 279 Bytes

Versions: 3

Compression:

Stored size: 279 Bytes

Contents

require "iolite/functinal/send"

class Module
	def iolite_define_send_original_methods prefix = "_"
		instance_methods.each{ |method|
			next if method !~ /\w/
			define_method("#{prefix + method.to_s}"){ |*args|
				Iolite::Functinal.send(self, method, *args)
			}
		}
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iolite-0.0.3 lib/iolite/adaptor/define_send_original_methods.rb
iolite-0.0.2 lib/iolite/adaptor/define_send_original_methods.rb
iolite-0.0.1 lib/iolite/adaptor/define_send_original_methods.rb