module Fuuu

Constants

VERSION

Public Class Methods

included(mod) click to toggle source
# 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

Private Class Methods

fu_call() { || ... } click to toggle source
# File lib/fuuu.rb, line 21
def self.fu_call
  begin
    yield if block_given?
  rescue => e
    Launchy.open("http://stackoverflow.com/search?q=[ruby]\"#{e.message}\"")
  end
end