module Expressionist::Functions
Public Class Methods
add(name, &block)
click to toggle source
# File lib/expressionist/functions.rb, line 13 def add(name, &block) functions[name] = block end
functions()
click to toggle source
# File lib/expressionist/functions.rb, line 9 def functions @functions ||= {} end
get(name)
click to toggle source
# File lib/expressionist/functions.rb, line 17 def get(name) functions[name] end