In Files

Class Index [+]

Quicksearch

Flt::MathBase::ClassMethods

Public Instance Methods

math_function(*fs) click to toggle source
    # File lib/flt/math.rb, line 39
39:       def math_function(*fs)
40:         fs.each do |f|
41:           define_method f do |*args|
42:             context.send f, *args
43:           end
44:           module_function f
45:         end
46:       end
num_class(cls, &blk) click to toggle source
    # File lib/flt/math.rb, line 30
30:       def num_class(cls, &blk)
31:         define_method(:num_class){cls}
32:         if blk
33:           define_method(:context, &blk)
34:         else
35:           define_method(:context){num_class.context}
36:         end
37:         module_function :num_class, :context
38:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.