Module: Fuuu

Defined in:
lib/fuuu.rb,
lib/fuuu/version.rb

Constant Summary collapse

VERSION =
"1.1.0"

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/fuuu.rb', line 5

def self.included(mod)
  42.times do |i|
    method_name = "f#{("u" * (i + 1))}"

    mod.define_singleton_method(method_name) do |&block|
      Fuuu.fu_call &block
    end

    define_method(method_name) do |&block|
      Fuuu.fu_call &block
    end
  end
end