Module: XlsFunction::Evaluators::ClassDictionary
- Included in:
- FunctionEvaluator
- Defined in:
- lib/xls_function/evaluators/class_dictionary.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/xls_function/evaluators/class_dictionary.rb', line 4 def self.included(klass) klass.class_eval do class << self def register_dictionary(key, value = self) @register_key = key dictionary[key] = value end def from_dictionary(key) dictionary[key] end def description(text) @description = text end private def dictionary XlsFunction.class_dictionary end end end end |