Class: Class

Inherits:
Object
  • Object
show all
Defined in:
lib/daft_funkt.rb

Instance Method Summary collapse

Instance Method Details

#daft_funkts(*args) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/daft_funkt.rb', line 22

def daft_funkts(*args)
  args.each do |arg|
    next if DaftFunkt::Functions[arg].nil?
    # Here's the getter
    class_eval("def #{arg};DaftFunkt::Functions[:#{arg}];end")
  end
end