Module: XlsFunction::Evaluators::ArgumentsDefinable::ClassMethods

Defined in:
lib/xls_function/evaluators/arguments_definable.rb

Instance Method Summary collapse

Instance Method Details

#define_arg(name, default: nil, type: nil) ⇒ Object



30
31
32
33
34
35
# File 'lib/xls_function/evaluators/arguments_definable.rb', line 30

def define_arg(name, default: nil, type: nil)
  @arg_definitions ||= []

  @arg_definitions << [name, default, type]
  attr_reader(name)
end