Module: Mana::Mixin::ClassMethods

Defined in:
lib/mana/mixin.rb

Instance Method Summary collapse

Instance Method Details

#mana(method_name) ⇒ Object

Mark a method for LLM compilation. Usage:

mana def fibonacci(n)
~"return an array of the first n Fibonacci numbers"
end


17
18
19
20
# File 'lib/mana/mixin.rb', line 17

def mana(method_name)
  Mana::Compiler.compile(self, method_name)
  method_name
end